Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 46463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T15:58:11+00:00 2026-05-10T15:58:11+00:00

We have redesigned the structure to a website which has several business units. Now

  • 0

We have redesigned the structure to a website which has several business units. Now I want to redirect (301) to the new page.

IE:
was http://www.example.com/abc
now http://www.example.com/default.aspx?article=abc

I have tried to use Global.asax to do this, and it works properly when I debug through it.

        if (Request.RawUrl.Contains('abc'))         {             Response.RedirectLocation = '/default.aspx?article=abc';             Response.StatusCode = 301;             Response.StatusDescription = 'Moved';             Response.End();         } 

So http://localhost:1234/example/abc redirects properly, but (where 1234 is the port for the debugging server)
http://localhost/example/abc does not redirect, it gives me a 404.

Any ideas?


Additional info: If I go to http://localhost/example/abc/default.aspx then it redirects properly.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T15:58:12+00:00Added an answer on May 10, 2026 at 3:58 pm

    Well, if the port indicates you are using the built-in web server (the one that comes with VS), this probably works because that always routes requests through the ASP.NET framework.

    Requests ending with /abc will not automatically route through the ASP.NET framework because IIS may not ‘know’ you want them to. You need to check your IIS settings to make sure such requests are routed to the aspnet_isapi.dll


    EDIT: To accomplish this, you need to add a wildcard mapping:

    1. In IIS Manager, expand the local computer, expand the Web Sites folder, right-click the Web site or virtual directory that you want, and then click Properties.
    2. Click the appropriate tab: Home Directory, Virtual Directory, or Directory.
    3. In the Application settings area, click Configuration, and then click the Mappings tab.
    4. To install a wildcard application map, do the following:
      • On the Mappings tab, click Add or Insert.
      • Type the path to the DLL in the Executable text box or click Browse to navigate to it (for example, the ASP.NET 2.0 dll is at c:\windows\microsoft.net\framework\v2.0.50727\aspnet_isapi.dll on my machine)
      • For extension, use ‘.*’ without quotes, of course
      • Select which verbs you want to look for (GET,HEAD,POST,DEBUG are the usual for ASP.NET, you decide)
      • Make sure ‘Script engine’ or ‘Application engine’ is selected
      • Uncheck ‘Check that file exists’
      • Click okay.

    I may be off on this, but if I am, hopefully someone will correct me. 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently redesigned my website and now I have many lines of code that
We just switched to our new website redesign. We have a copy of the
I have several modules (mainly C) that need to be redesigned (using C++). Currently,
I have an ASP .NET Website where i have an index.aspx page and 3
the WPF app I have has been redesigned to use tabs and be single
I want to have the following version structure: (my private changes to 0.1.0) -
I have such database structure: Class Company has a property CompanyInfoTableName Also I have
I have a site with URLs like this: http://domain.co.uk/subdir/page.php I have redesigned the site
In my new website I have a logo that when clicked should return visitors
I have the following XML Document (that can be redesigned if necessary) that stores

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.