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:

http://learn.iis.net/page.aspx/460/using-url-rewrite-module/

The URL includes instructions on how to use web.config to redirect URLS to different ones.
(154 vote(s))
Helpful
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.
anil
17 September 2012 11:00 PM
Hi,
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 www.asp.net

2 google www.google.com

3 yahoo www.yahoo.com

using the above data ,based on custId Open cursponding URL(Column) data(Ex:www.asp.net) website will open in browser using asp.net


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
Hi
I have a hosting a/c with Username : chairane for my site http://backlinkerz.net I want to know the 301 redirect procedure. I want to make my website address to http://www.backlinkerz.net 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 www.backlinkerz.net
I'm awaiting your reply.
Thanks
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:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).