Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Move to root directory


JonoB

Recommended Posts

Posted

Hi, I have had my shop running for the past couple of months on www.myphotoframe.co.uk/catalog

 

Anyone visiting www.myphotoframe.co.uk is redirected using .htaccess and the followng code, which I have been told is OK for search engines, etc:

 

RedirectMatch permanent ^/$ http://www.myphotoframe.co.uk/catalog/

 

I am now thinking of moving my whole site into the root directory. This is what I am thinking of doing to achieve this:

 

1. Download my site to my harddrive, clean up the files on the server

 

2. Edit the configure.php in /catalog/includes as follows, changing the following lines:

 

define('HTTP_COOKIE_PATH', '/catalog/');

Change to define('HTTP_COOKIE_PATH', '/');

 

define('DIR_WS_HTTP_CATALOG', '/catalog/');

Change to define('DIR_WS_HTTP_CATALOG', '/');

 

('DIR_FS_CATALOG', '/home/www/hosts/www.myphotoframe.co.uk/catalog/');

Change to ('DIR_FS_CATALOG', '/home/www/hosts/www.myphotoframe.co.uk/');

 

3. Make similar changes to the /catalog/admin/admin/configure.php

 

4. Upload new files to the server, but exclude the /catalog directory.

 

Can anyone please let me know if this will work, or if I am missing any other changes out.

 

Thanks for the help.

Posted

There's easier ways to do it but that will work.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Posted

remember that the path for admin will also change when you move everything to root, other than that you are doing it correctly

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Posted
There's easier ways to do it but that will work.

Besides doing a complete reinstallation (which I am not doing as I have lots of mods), would you mind sharing your easier way?

Posted

Some ftp programs will move folders and files on the server. Or with ssh or telnet you can do the same with a command line.

 

Your method is fine, it's just a little slow, with all the downloading and uploading.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Posted

nothing wrong with a download and upload especially if you have allready stated that you want to do a cleanup

I am now thinking of moving my whole site into the root directory. This is what I am thinking of doing to achieve this:

 

1. Download my site to my harddrive, clean up the files on the server

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Archived

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

×
×
  • Create New...