| 12:11 pm on Oct 12, 2004 (gmt 0)|
I'm not an ASP programmer but I believe this should do the job for you. Simply use the paramater from the URL to build your new location. Also, be sure to check the header after implementing to make sure it is working properly.
Response.Status "301 Moved Permanently"
Response.AddHeader "Location", "YOUR_NEW_URL"
| 12:54 pm on Oct 12, 2004 (gmt 0)|
|I'm not an ASP programmer |
I understand how to do it one page to another, the problem is how do I do it for one page that has 120 IDs which all need to go to different destinations.
| 2:10 pm on Oct 12, 2004 (gmt 0)|
I think this should do it. Someone else here can maybe check my thinking?
pageid = cstr(request("pageID"))
newurl = "www.domain.com/somepage" & pageid
response.status "301 Moved Permanently"
response.AddHeader "Location", "" & newurl & ""
| 2:40 pm on Oct 12, 2004 (gmt 0)|
I believe that will work, depending on if they can use a 404 page for the old links. <thinking> hmmmm, that could work, I just wonder if the second level pages are just one page that pulls content depending on the page id, if so, then in that page they can just add that bit of code you have and that should do the trick</thinking>
| 4:11 pm on Oct 12, 2004 (gmt 0)|
Thanks, I will get back once I have spoken to the programmer.
| 12:50 pm on Oct 15, 2004 (gmt 0)|
I have added the code as suggested and it works.
Thanks for the help Dotme and Birdman.