Welcome, Guest ( Customer Panel | Login )




 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  

Trial_and_Error
Starting Member

36 Posts

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

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"
					Response.End
				end if
			End if

support
Administrator

4679 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:
http://www.twitter.com/vpasp
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00