Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

default.php?


sstaubin

Recommended Posts

Posted

Is there a reason the main page in catalog is called default.php? Can I rename it index.php to prevent "directory browsing" on my server?

Posted

rather than renaming the file and risk affecting the script:

 

1) contacting isp and asking them to parse default.php as the standard, alongside index.php

 

OR

 

2) create a file called index.php, in which have the php redirect function, something like

 

<?php

header("Location: http://www.yourdomain.com/default.php");

?>

 

just make sure that you include the full url to the default.php file

 

 

I think that is the correct code i am recently new to php, if that dont work have a look at

www.php.net

 

hth

 

Matt

Archived

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

×
×
  • Create New...