VP-ASP :: Shopping Cart Software

Shopping Cart Software Solutions for anywhere in the World

US/Canada(Toll Free): +1 888 587 2278
Europe/UK: +44 (020) 7193 9408
Australia/New Zealand: +61 3 9016 4497

VP-Cart StoreFront Customer Forum

Home | Profile | Register | Active Topics | Members | Search | FAQ
Save Password
Forgot your Password?

 All Forums
 VPCart Forum
 General help me questions
 How to redirect the howpage
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

36 Posts

Posted - November 09 2010 :  20:16:51  Show Profile  Reply with Quote

I'm looking for a method to redirect my homepage but it does not seem to work. My visitors are able to visit my site by entering (for example) http://www.mysite.com. When they do this, they get http://www.mysite.com/ in the browser (including the / at the end).

I want to redirect them directly to my default.asp page (so to http://www.mysite.com/default.asp).

I have already tried in the sub shoppageheader without success:

			if lcase(compareurl) = "/" then
				If lcase(Request.ServerVariables("SERVER_NAME")) = xmysite & "/" Then

					Response.Status="301 Moved Permanently"
					'Response.AddHeader "Location","http://www."	& Request.ServerVariables("HTTP_HOST") & Request.ServerVariables("REQUEST_URI")
					Response.AddHeader "Location", xmysite & "/default.asp"
				end if
			End if


4282 Posts

Posted - November 09 2010 :  21:22:07  Show Profile  Visit support's Homepage  Reply with Quote
Hi there

Your best bet would be to ask your web host to make the default.asp file the first default page accessed in IIS.

Hope this helps.

Thank you.

Cam Flanigan
VP-ASP Cart Support

Follow us on Twitter:
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000