Zen Cart Logo
Forums / General Questions / Re-directing - bit confused!

Re-directing - bit confused!

Locked

Views: 894

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
14 May 2010, 11:47 AM
#1
pb4 avatar

pb4

Totally Zenned

Join Date:
Nov 2007
Posts:
555
Plugin Contributions:
0

Re-directing - bit confused!

Hi,

I'm just in the process of mocing my site to a different directory and following this:
https://www.zen-cart.com/tutorials/index.php?article=122

This might be a daft question but in the session directory what should the path be?

My site is now going to be within the public folder of my main site.

Also on step three it says: Move/Rename the folder.

Does this mean move the whole site? and can I just put everything within my public folder or should I have a folder called 'Shop' and put everything in there. Obviously I want people to hit the site when they go to the domain.

Thanks

14 May 2010, 12:11 PM
#2
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Re-directing - bit confused!

There are fundamentally three steps to moving a site up to the root directory.

The first is the "physical" relocation of the all zencart folders and files into the public_html level. easiest to do this in C-Panel.

Step two is editing the two configure.php files (now moved), to reflect the PATH changes in relevant DEFINE LINES in these files. (Basically, every line in which you see a reference in the path to the original sub-folder, that gets edited out).

Step Three is to point the cache operations to the right place. (The cache folder has also been moved, so the reference to its PATH in the database needs to be corrected. You can do this in admin >>> configuration >>> sessions >>> Sessions Directory...

Whole process can be done in under 3 and a half minutes... (Our current record!)

14 May 2010, 12:21 PM
#3
pb4 avatar

pb4

Totally Zenned

Join Date:
Nov 2007
Posts:
555
Plugin Contributions:
0

Re: Re-directing - bit confused!

Thanks for that, so what would (step 3 ) my root path look like?

14 May 2010, 12:41 PM
#4
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Re-directing - bit confused!

pb4:

Thanks for that, so what would (step 3 ) my root path look like?

It depends on your server setup... but if your shop was housed in a SUB-directory, then the NAME of that sub-directory will appear in the path shown.

Simply edit out JUST that subfolder name...

14 May 2010, 12:43 PM
#5
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Re-directing - bit confused!

In my case, the line reads:
**
/srv/www/vhosts/mywebsite.co.uk/httpdocs/shop/cache**

... showing that my site currently sits in a sub-directory called shop .

If I were to move it up to the root, I would do this:

/srv/www/vhosts/mywebsite.co.uk/httpdocs/cache

14 May 2010, 12:47 PM
#6
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Re-directing - bit confused!

The SAME logic applies to the configure.php files... in the various defines where the word /shop/ appeared, all I need do is remove shop/

(NOTE how I also remove one of the slashes... You dont want a double slash in these lines!)

14 May 2010, 1:27 PM
#7
pb4 avatar

pb4

Totally Zenned

Join Date:
Nov 2007
Posts:
555
Plugin Contributions:
0

Re: Re-directing - bit confused!

Thanks again.

I've changed it to

/home/sites/nameofsite.com/public_html/cache

Does that look right?!

If its not right how will I know? What will happen?!