301 Redirect |
Post Reply |
Author | |
macleather
Newbie Joined: 23-June-2008 Location: Los Angeles Status: Offline Points: 3 |
Post Options
Thanks(0)
Posted: 02-June-2011 at 7:01pm |
Hi All,
I have an htm file as my website landing page. Now that I have installed the mobile add-on, I want to redirect my htm landing page to home.asp to take advantage of the automatic mobile phone redirect. I've followed the instructions in the WIKI and created a default.htm file with the following:(changing productcart to my renamed folder) <% Response.Status="301 Moved Permanently" Response.AddHeader "Location", "/productcart/pc/home.asp" %> Once this is uploaded to my root (where my original index.htm file is located) and I enter my url I get a page loaded with the redirect code displayed rather than my home.asp page. I also tried putting in the complete url to the home.asp page in the above statement without success. In the WIKI is says to upload to my pc folder but I can't figure out why that would work since typing in my url will grab the index file and stop there. What am I missing? Any ideas on how to accomplish this redirect? Sorry for the long post and thanks Alan |
|
Greg Dinger
Certified ProductCart Developers Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
Post Options
Thanks(0)
|
Alan - since that code is ASP, you need to place it in an ASP page. A .HTM page, as you discovered, does not know how to deal with ASP scripting.
|
|
Post Reply | |
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 |