|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
301 Redirect on windows serverThis is a discussion on 301 Redirect on windows server within the Coding Tutorials forums. Topic: If you have a dynamic ASP site and your Windows IIS host won't allow you to do the server-... |
![]() |
![]() |
|
![]() |
LinkBack | Thread Tools | ![]() | Search this Thread | ![]() | Display Modes | ![]() |
|
|
#1 (permalink) |
|
If you have a dynamic ASP site and your Windows IIS host won't allow you to do the server-side IIS tweak, here is the code you can add to all the ASP pages on your website:
Code:
Of course, be sure to replace domain.com with your own domain name and in lower case only. If you use this code, I suggest you save it in a file named redirect.asp and then add to the top of each file on your site the following snippet: Code:
If you have files in sub-directories add the appropriate path info or use a fully qualified path. Hope this helps. |
|
|
|
|