Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Cannot get to home page


raydona

Recommended Posts

Posted

Hi,

My site is http://www.lolaproducts4sale.com/'>http://www.lolaproducts4sale.com/ When I type that in the address bar I get a blank page. Yet when I type in http://www.lolaproducts4sale.com/'>http://www.lolaproducts4sale.com/catalog I get to the oscommerce store. This despite having placed an index.php file:

<?php

header( 'Location: http://www.lolaproducts4sale.com/'>http://www.lolaproducts4sale.com/catalog' );

?>

in "public_html". I wonder what the problem could be? I would like to go immediately to the home page after having typed http://www.lolaproducts4sale.com in the address bar. I am on a Linux virtual server and have three other domain names on the same machine. All help would be greatly appreciated.

Posted

@@raydona

 

You can either use your domain manager to set the starting index (if your domain manager allows this) or you can move your store to the root directory.

 

 

 

Chris

Posted

Don't move your store to the root directory. It's much better to put each major application in its own subdirectory. This allows you to add other applications later (in their own subdirectories) and have a "landing page" in / with links to the various applications. In the mean time, while you have only one application (osC), just use .htaccess URL rewrite to jump a visitor from / to /catalog:

 

RewriteEngine On
RewriteCond  %{REQUEST_URI}  !^/catalog  [NC]
RewriteRule  ^(.*)$  /catalog/$1  [L]

 

Remove your current /index.php file (the one that redirects). The biggest problem with installing an application into the root is that later application installations have to go through the first application's /.htaccess, which can really mess them up. With osC in /catalog, and its custom /catalog/.htaccess to do SEO, etc., your /.htaccess can be reserved for sitewide things like error pages, adding or dropping www., etc.

Posted

@@raydona

 

The above post assumes you will be running multiple applications from the same hosting account. The fact is, installations in the root directory are indexed more efficiently by search engines. Therefore, moving it (if your hosting account does not allow you to set the starting directory) is the best option.

 

 

Chris

Archived

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

×
×
  • Create New...