Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing the front page directory


Thomp

Recommended Posts

Ok, so I feel a bit ashamed to be asking support for probably what seems like a trivial issue. But here goes anyway.

 

So my osCommerce website is located at var/www/html/catalog directory so, when I type in the address for my site, I have to have created a index.html in the html directory with the appropriate links to the catalog directory. Well, I really would love to get rid of this extra step. So what can I do to have the front page of the website http://www.myoscommercesite.com with the index file pointed directly at the catalog directory?

 

Do I need to move everything from the catalog directory to the html directory, or is there another way? :(

 

oh, and no redirects.. the spiders dont like those...

 

Thanks for the help folks..

 

-Thomp :blush:

Link to comment
Share on other sites

Ok, so I feel a bit ashamed to be asking support for probably what seems like a trivial issue. But here goes anyway.

 

So my osCommerce website is located at var/www/html/catalog directory so, when I type in the address for my site, I have to have created a index.html in the html directory with the appropriate links to the catalog directory. Well, I really would love to get rid of this extra step. So what can I do to have the front page of the website http://www.myoscommercesite.com with the index file pointed directly at the catalog directory?

 

Do I need to move everything from the catalog directory to the html directory, or is there another way? :(

 

oh, and no redirects.. the spiders dont like those...

 

Thanks for the help folks..

 

-Thomp :blush:

 

As far as i know unless you put a redirect in you will have to move everything to the root of your site

I dont help with templates (thats what the seller is for)

 

th search function will often help, when it dont try this in google.

 

site:http://www.oscommerce.com/forums then your search word

Link to comment
Share on other sites

Hmm, I created an index.php page (there is no index.html) and put this as the only code in the page

<?php
header("Location: http://www.######.com/catalog/index.php")
?>

Of course you'd change those #### to your actual site name

 

It works for me, perhaps it would work for you.

Link to comment
Share on other sites

Thanks for all the suggestions!

 

I fiddled around and then took the plunge. So I moved everything over to the root. Took me an hour.. and a few heart palpatations.. but everything seems to be working ok (the famous last words).

 

Thanks again for all the help! You guys rock! :thumbsup:

 

 

-thomp

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...