This is a discussion on Root install /index.php fix within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; If you have a store that is installed in the root directory (you DO NOT have a /catalog dir -- ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| If you have a store that is installed in the root directory (you DO NOT have a /catalog dir -- you go directly to www.domain.com and your store is right there) this contribution may be for you. What it does: When you are on a page your site, to search engines especially, would show as www.domain.com AND www.domain.com/index.php we all know that you don't need the index.php one and you do not want to show two links with the same content to the search engines... So. here is what I did. First in: index.php Change: require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFAULT); To: require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFAULT_HOME); Then, in: includes/filenames.php find: define('FILENAME_DEFAULT', 'index.php'); And change it to: // Start index.php fix. // define('FILENAME_DEFAULT', 'index.php'); define('FILENAME_DEFAULT', ''); define('FILENAME_DEFAULT_HOME', 'index.php'); // End of index.php fix. Now all the links in header and footer, etc. that use to say www.domain.com/index.php will only say www.domain.com. There are A LOT of other fixes for this on osCommerce forums and they either involved changing a bunch of files and other ways that I couldn't get to work (I'm sure they must work, but I couldn't get them to work (along with a few other people). I have tested this as much as I could -- if you can make it better, please do so! Pete More...
__________________ Michael Sasek osCMax Developer
|
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Fresh install oscmax v1.7 blank catalog index page | webwolfe | osCMax v1.7 Installation | 4 | 06-20-2005 05:23 AM |
| Can't install Oscommerce - only one script in root directory | dalglish | osCommerce 2.2 Installation Help | 1 | 01-16-2005 12:09 PM |
| Are there any security issues running in root? | DMG | osCMax v1.7 Discussion | 2 | 01-25-2004 04:23 AM |
| Install in ROOT or CATALOG Folder??? | Masalai | osCommerce 2.2 Installation Help | 6 | 12-29-2003 04:05 PM |
| root access | litotes | osCommerce 2.2 Modification Help | 1 | 10-20-2003 02:51 PM |