Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing home page to oscommerce


pfaustino

Recommended Posts

Posted

I'm sort of a newbie to PHP. I've already made a site with a store using regular Paypal buttons. So my homepage is here.

 

http://wild-smoked-salmon.net

 

After installing osCommerce, I decided that I want my home page to be

 

http://wild-smoked-salmon.net/catalog/

 

What is the best way to do this without reducing my search engine results (not that I have any right now)? I was hoping for a solution that sort of redirects the visitor to the store BUT the url they see is still the main top level page ie/ wild-smoked-salmon.net, without the /catalog/.

  • 2 weeks later...
Posted

Hi,

 

I'm not sure how well this works with Search engines (My site isn't live yet) but I've put a file called index.php in the root directory (usually called public_html or www)

 

Contents are as follows:

 

<?php

/*

 

Copyright ? 2004 OzOnlineShop

 

Released under the GNU General Public License

*/

 

chdir('catalog');

require('index.php');

 

 

 

You can see it at work at www.ozonlineshop.com.au All the OsCommerce is installed in the default catalog folder

 

I tried the .htaccess method, but the site would try and resolve to www.ozonlineshop.com.au/catalog/catalog/catalog........until it eventually broke

 

If anyone has any better methods that are search engine friendlier then I'd appreciate the help too.

 

Hope this helps

 

Cheers

Archived

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

×
×
  • Create New...