Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

moving site outside catalog directory!


Guest

Recommended Posts

Hi there! can some one advise me on how to move my site outside of the catalog directory, including any changes i need to make in the htaccess file!

 

Im trying to install the ultimate SEO contribution only i am having problem which i think is beacuse of this!

 

thanks!

Link to comment
Share on other sites

Hi there! can some one advise me on how to move my site outside of the catalog directory, including any changes i need to make in the htaccess file!

 

Im trying to install the ultimate SEO contribution only i am having problem which i think is beacuse of this!

 

thanks!

 

Do you mean move your store from the www.yourdomain.com/catalog to www.yourdomain.com? If that is the case, then move all of your files to the root directory (www.yourdomain.com) and change the config.php files found in catalog/includes (now /includes) and catalog/admin/includes (now admin/includes) to point to the correct place. The htaccess file will need to be changed if the htpassword file is moved. If it is not moved, the new location of htaccess should be ok.

Link to comment
Share on other sites

Do you mean move your store from the www.yourdomain.com/catalog to www.yourdomain.com? If that is the case, then move all of your files to the root directory (www.yourdomain.com) and change the config.php files found in catalog/includes (now /includes) and catalog/admin/includes (now admin/includes) to point to the correct place. The htaccess file will need to be changed if the htpassword file is moved. If it is not moved, the new location of htaccess should be ok.

 

ok thanks ill give it a go!

Link to comment
Share on other sites

there is a more simple solution to just add a simple small .htaccess file in the root and leave all the rest of the files on the same location, but to just edit the config files to change your http_host and https_host:

RewriteEngine On
RewriteRule ^(.*)/? /catalog/$1

modifying your config files is a must in this case, else your files will be looked up in /catalog/catalog/...

 

good luck

Link to comment
Share on other sites

  • 3 weeks later...
there is a more simple solution to just add a simple small .htaccess file in the root and leave all the rest of the files on the same location, but to just edit the config files to change your http_host and https_host:

RewriteEngine On
RewriteRule ^(.*)/? /catalog/$1

modifying your config files is a must in this case, else your files will be looked up in /catalog/catalog/...

 

good luck

Hi! Thanks fr the advice! Do you think you could elabourate on this one slightly. Do i have to move my htaccess file to a different location? Do i have to edit my htaccess file?

Is the code which you have referenced what i need to change it to?

 

thanks!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...