301 Redirect |
Post Reply | Page <12 |
Author | |
worldofrugs
Senior Member Joined: 24-April-2008 Location: United States Status: Offline Points: 0 |
Post Options
Thanks(0)
|
Never mind... Figured it out... Should have used:
Response.AddHeader "Location", "/shop/pc/OtherPage.asp" instead of the Respnse.Redirect Time for more coffee!! |
|
worldofrugs
Senior Member Joined: 24-April-2008 Location: United States Status: Offline Points: 0 |
Post Options
Thanks(0)
|
Afraid it's not working for me :(
I tried adding this at the top of the page:
While the Re-Direct goes fine, the headr status is not returning 301, but 302! Any suggestions? Edited by worldofrugs - 02-June-2010 at 4:14pm |
|
Greg Dinger
Certified ProductCart Developers Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
Post Options
Thanks(0)
|
That's simple Curt. Just place a bit of code in your header.asp
Here is the code that allows you to grab the current page name.
Here is the code for an ASP 301 redirect.
You need to wrap the 301 redirect with an IF statement that tests for which page you are on. When you find that you are on the page you want to redirect from, pull the trigger and blast it.
|
|
avalight
Newbie Joined: 21-September-2007 Status: Offline Points: 3 |
Post Options
Thanks(0)
|
What would be the best way to redirect this asp page:
http://www.avalanche-ranch.com/rusticlighting/pc/viewCategories.asp?idCategory=3 to this page http://www.avalanche-ranch.com/rusticlighting/pc/viewCategories.asp?idCategory=4 I want to use a 301 redirect. I have looked online for this. I don't see a solution. Perhaps the isapi rewrite? Looks pretty complicated. I have just stopped using that category... Thanks Curt Avalanche Ranch Light Company Edited by avalight - 22-December-2009 at 11:19pm |
|
Curt
|
|
Post Reply | Page <12 |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |