Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

changing all links to default.php to index.php


Guest

Recommended Posts

Posted

Hi...

 

My linux server won't automatically display "default.php" to open the store... so I re-named "index.php" and that solved the problem....

 

BUT

 

there are alot of cart links like "continue" etc. that point to default.php... is there an easy way without editing tons of files to change the cart to recognize that the default page I want it use is called "index.php" instead.

 

thanks,

Curtis =)

Posted

2 ways of doing it:

 

1. Do not rename default.php to index.php, but add the following as a new line in .htaccess file in your catalog route

 

DirectoryIndex default.php

 

2. in /catalog/includes/application_top.php

 

around line 62, find:

define('FILENAME_DEFAULT', 'default.php');

 

change it to

define('FILENAME_DEFAULT', 'index.php');

(or whatever you may want to rename your default page)

 

Hope this helps

 

Rgds

Sunny

Posted
2 ways of doing it:

 

1. Do not rename default.php to index.php, but add the following as a new line in .htaccess file in your catalog route

 

sorry for the typo... that's root.

Archived

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

×
×
  • Create New...