Knowledgebase: ASP .NET / ASP
How can I redirect one URL to another on ASP .NET?
Posted by Arvand Sabetian (Import) on 01 May 2009 07:09 AM
Our ASP plans have the following installed:

The URL includes instructions on how to use web.config to redirect URLS to different ones.
(154 vote(s))
Not helpful

Comments (5)
Adam Ahmed
15 December 2009 08:19 PM
For anyone else having trouble:

The <rewrite/> element mentioned in the article goes in <system.webServer/>. You don't need a configSections > section element for it.
17 September 2012 11:00 PM
I have requirment like this,Redirecting URL based on CustId

I have a table Customer ,in that table custId,name,URL columns is thier

Table data is

custId name URL

1 asp

2 google

3 yahoo

using the above data ,based on custId Open cursponding URL(Column) data( website will open in browser using

Michael Carr
25 September 2012 12:44 PM
You would need to do that through some type of programming that is reading the database and issuing a url for that customer ID. There is nothing built in to the server that would allow you to do that, you will have to create some custom code for that and then have the redirection done through a php page for example.
Chaitanya Rane
20 September 2012 03:03 PM
I have a hosting a/c with Username : chairane for my site I want to know the 301 redirect procedure. I want to make my website address to with "301" (or "permanent") redirection code.
Do your server allow to override web server's configuration using a .htaccess file?
Do you provide the the mod_rewrite Apache module?
Please Guide me in this process of Redirection of my plain domain to WWW form as
I'm awaiting your reply.
Chaitanya Rane
Michael Carr
25 September 2012 12:40 PM
Yes, our linux based Apache servers can use both .htaccess and mod_rewrite but this article is for redirection on IIS based ASP.NET servers so those methods will not work if you are running IIS
Post a new comment
Full Name:
CAPTCHA Verification 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).