pfaustino Posted February 19, 2004 Posted February 19, 2004 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/.
ozonlineshop Posted March 1, 2004 Posted March 1, 2004 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.