|
Hi all-
Thanks in advance for your help! Here's the skinny on my challenge...
I host my company's website with an ISP that's MS IIS (not apache, etc.). The problem is that I want to redirect website visitors to a specific page when they would otherwise get the infamous 404 error.
I understand this is relatively easy w/ other web servers -- but not IIS unless I have access to the mgmt console.
Does anyone know of a solution for my problem? I have full access to my web directories/files -- but not to the mgmt console.
Thanks!
Richard
MS IIS Code/Workaround: how to redirect web visitors to another URL instead of receiving 404?
The previous answer would work, as long as the server is using an external 404 page and not the IIS embedded one.
If it is using the embedded 404 page, then you'll have to do a roundabout way to do it... Well, kind of...
Assuming you want to transfer from an old link (or something like site.com/whatever to go to something like site.com/help.asp?var=val&var=val ) then all you have to do is creat an index.html and add your redirect code into that single file.
MS IIS Code/Workaround: how to redirect web visitors to another URL instead of receiving 404?
You need to go in and edit the default 404 page on the server and put a redirect url in it. Then anytime the server returns a 404, it goes wherever the redirect is set to. The pages are in the C:\WINDOWS\help\iisHelp\common directory.
|