Results 1 to 8 of 8
  1. #1
    Join Date
    Nov 2007
    Posts
    555
    Plugin Contributions
    0

    Default 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/i...hp?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

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

    Default 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!)

  3. #3
    Join Date
    Nov 2007
    Posts
    555
    Plugin Contributions
    0

    Default Re: Re-directing - bit confused!

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

  4. #4
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Re-directing - bit confused!

    Quote Originally Posted by pb4 View Post
    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...

  5. #5
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default 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

  6. #6
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default 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!)

  7. #7
    Join Date
    Nov 2007
    Posts
    555
    Plugin Contributions
    0

    Default 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?!

  8. #8
    Join Date
    Mar 2010
    Location
    UK
    Posts
    445
    Plugin Contributions
    0

    Default Re: Re-directing - bit confused!

    Step 4 is to redirect requests for the old URLs in the folder to the new URLs:

    http://www.zen-cart.com/forum/showth...=150620&page=2

 

 

Similar Threads

  1. directing payment
    By wizehop in forum General Questions
    Replies: 4
    Last Post: 6 Apr 2010, 05:06 AM
  2. Directing to a warning!
    By tanyaleann in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 24 Sep 2008, 04:22 PM
  3. I'm a bit confused! I've got header text I can't find!
    By Ben-B in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 7 Feb 2008, 10:11 AM
  4. hi.txt - A bit Confused about accessing complete site in ftp
    By MeltDown in forum General Questions
    Replies: 1
    Last Post: 10 Jun 2007, 06:00 PM
  5. still a bit confused
    By earmsby in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 22 Dec 2006, 11:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg