Results 1 to 2 of 2
Thread: 404 page to do 301 redirect
May 17, 2010, 09:39 #1
404 page to do 301 redirect
Hi there - I'm going to preface this by saying that I know pretty much nothing about IIS or ASP.
I just reworked a site for a client who is on a shared Windows hosting account. There are many URLs that need to be redirected permanently (301) to their new counterparts (for search engine purposes). Not having access to IIS at all (in addition to not being familiar with it) and not knowing how to go about this (I'm used to .htaccess), here's what I was told by the host:
show a default 404 and use the 404 to handle the redirects… It works like this… Create a script that will check the URL (page that was being searched)… If the page that was being searched should now pull up another page, have the script redirect the visitor to the new page. A possible way to do this may be to have a table in the database with the old file paths and the new file paths. The script could check against that then send users to the correct location
I have no idea how to go about this... Any help would be greatly appreciated.
May 17, 2010, 12:59 #2
- Join Date
- Jun 2007
- 0 Post(s)
- 0 Thread(s)