Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

directing viewers to catalog/default.php


lucilue2003

Recommended Posts

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.

Link to comment
Share on other sites

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" %>

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...