Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Index load up page?


mcoski

Recommended Posts

My site lets say www.blah.com isnt redirecting correctly to my www.blah.com/store. The /store part is where the oscommerce site is placed, but I want to know methods of being able to just type in blah.com and pull up the store. In my ftp program can i just move everything out? If so , what do I rename the directories to/ Etc. Thanks!

Link to comment
Share on other sites

If you are on a linux server, you can add a new rule to your .htaccess file.

 

Like this:

ReWriteEngine On

RewriteCond %{HTTP_HOST} ^www.blah.com$

RewriteCond %{REQUEST_URI} !^/store/

RewriteRule (.*) /store/$1

 

You should also make changes in your config.php files, because your root is now www.blah.com, not www.blah.com/store.

Link to comment
Share on other sites

# -FrontPage-

 

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

 

<Limit GET POST>

order deny,allow

deny from all

allow from all

</Limit>

<Limit PUT DELETE>

order deny,allow

deny from all

</Limit>

AuthName www.blah.com

AuthUserFile /home/blah/public_html/_vti_pvt/service.pwd

AuthGroupFile /home/blah/public_html/_vti_pvt/service.grp

ReWriteEngine On

RewriteCond %{HTTP_HOST} ^www.blah.com$

RewriteCond %{REQUEST_URI} !^/store/

RewriteRule (.*) /store/$1

 

Its still not working, anything else I need to throw in there?

Thanks

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...