lucilue2003 Posted May 16, 2003 Posted May 16, 2003 I've searched the forums and found ways to put it in the root. Wat if i dont want all this trouble ? What if i just want to make it so that they are automatically taken to catalog/default.php Does any1 know how this is possible ? Thanks. P.S. my public_html/ only the following catalog cgi-bin Thanks.
lucilue2003 Posted May 16, 2003 Author Posted May 16, 2003 sorry for bumping. But i really wnat to know how people directed there visitors from www.blah.com to www.blah.com/catalog thanks.
goXtreme Posted May 16, 2003 Posted May 16, 2003 You have a few different options here, good luck: 1. <HTML> <HEAD> <META HTTP-EQUIV = "Refresh" Content="0;URL=catalog/default.php"> </HEAD> </HTML> <!-- The 0 (zero) in content is the time you want it to sit on this page until it redirects. --> 2. <body> <html> <form method="post" action="catalog/default.php"> </form> <SCRIPT> document.forms[0].submit(); </SCRIPT> </body> </html> 3. Only if you are running from a windows server (ASP): <%@ LANGUAGE="VBSCRIPT" %> <% response.redirect "catalog/default.php" %>
goXtreme Posted May 16, 2003 Posted May 16, 2003 you didn't know, most web servers have an ordered list of web pages that are used when a request doesn't specify a page... different servers / hosts have a different order, but here are the general ones: index.htm, index.html, index.asp, default.htm, default.html, default.asp The redirect solutions listed on the previous post should be placed in one of the files above so when a request is made on your domain, it will automatically redirect.
orchard Posted May 16, 2003 Posted May 16, 2003 See this thread, http://www.oscommerce.com/forums/viewtopic.php?t=42659 to see how to create an index.php in the root directory to take the user to catalog/default.php In olden times the men were made of iron and the ships were made of wood; now it's the other way around. :wink:
Recommended Posts
Archived
This topic is now archived and is closed to further replies.