Results 1 to 7 of 7
  1. #1

    Default Help root not working after installing SSL

    Help I installed SSL on the site and the path www.artos.dk/zencart works fine, but www.artos.dk does not (error: 403 Forbidden - You don't have permission to access / on this server.)

    The webhotel suggest a redirect in htaccess file, but the root in Zencart does not have an htaccess file does it?

    Any help appreciated.

    Zencart v1.5.5a

  2. #2
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Help root not working after installing SSL

    Quote Originally Posted by Johnnyh View Post
    Help I installed SSL on the site and the path www.artos.dk/zencart works fine, but www.artos.dk does not (error: 403 Forbidden - You don't have permission to access / on this server.)

    The webhotel suggest a redirect in htaccess file, but the root in Zencart does not have an htaccess file does it?

    Any help appreciated.

    Zencart v1.5.5a
    Just installing SSL wouldn't be causing the permission denied error. Something else has changed. It is true that a .htaccess doesnt exist in the root zencart. You could add one, but it wont help. Such a redirect would need to be in thd root folder of your server, iow, one level up from the /zencart/ folder.
    That is the solution that *most* folk would take, but it is actually a bad solution because it is fixing a problem that shouldn't/needn't exist in the first place.
    The two better solutions woukd be to move the entire zencart up up one level to the / folder. An easier solution (in my opinion) is to set the "document root" to the /zencart folder. However, before doing any of these it would be wise to try to find out what has cgsnged to cause this, because simply adding SSL doesn't explain the symptoms.

  3. #3

    Default Re: Help root not working after installing SSL

    Quote Originally Posted by RodG View Post
    An easier solution (in my opinion) is to set the "document root" to the /zencart folder.
    Thanks for the reply.
    Where would I do that? Not in the configure-file...?

  4. #4
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Help root not working after installing SSL

    Quote Originally Posted by Johnnyh View Post
    Thanks for the reply.
    Where would I do that? Not in the configure-file...?
    Basically cpanel or specific configuration file(s) on the server. It's about pointing the external reference (web address) to an internal reference that would be the folder described above. But... then the includes/configure.php and admin/includes/configure.php files would need to be modified with that new location in consideration.

    What you would expect to see once the document root was changed is that you could enter the name of your site (without folder) and your main web-page will appear without a sub-directory in the address field, but all of your links will include the sub-folder.

    As part of the transition, in both files identified above, the defines that begin with DIR_WS_ and include the sub-folder name, will need to have the slash before it and the sub-folder removed: so for example: DIR_WS_CATALOG would go from '/zencart/' to just '/'. The defines that begin with DIR_FS_ would remain unchanged.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #5

    Default Re: Help root not working after installing SSL

    Thanks. I've changed it now like below. Stiil doesn't work though...?
    -------------
    define('HTTP_CATALOG_SERVER', 'https://artos.dk');
    define('HTTPS_CATALOG_SERVER', 'https://artos.dk');

    /**
    * Do you use SSL for your customers login/checkout on the storefront? If so, enter 'true'. Else 'false'.
    */
    define('ENABLE_SSL_CATALOG', 'true');

    /**
    * These DIR_WS_xxxx values refer to the name of any subdirectory in which your store is located.
    * These values get added to the HTTP_CATALOG_SERVER and HTTPS_CATALOG_SERVER values to form the complete URLs to your storefront.
    * They should always start and end with a slash ... ie: '/' or '/foldername/'
    */
    define('DIR_WS_CATALOG', '/');
    define('DIR_WS_HTTPS_CATALOG', '/');

  6. #6
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Help root not working after installing SSL

    It won't until artos.dk points to the location currently identified to DIR_FS_CATALOG... That is done by changing the document root as suggested by RodG. The alternative is to move your store from the zencart directory to the one above it and then modify DIR_FS_CATALOG to remove /zencart. This last part is described at this FAQ: https://www.zen-cart.com/content.php...that-directory
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  7. #7

    Default Re: Help root not working after installing SSL

    Thanks a lot, got it working now :)

 

 

Similar Threads

  1. v153 Problem using root as cookie path after installing CEON URI
    By flyvholm in forum All Other Contributions/Addons
    Replies: 16
    Last Post: 4 May 2016, 10:08 AM
  2. Site not working after installing deflate module on Linux
    By mca.santosh in forum General Questions
    Replies: 0
    Last Post: 23 Jun 2010, 12:43 PM
  3. now my checkout isn't working after installing SSL today
    By cdnbride in forum General Questions
    Replies: 21
    Last Post: 1 May 2010, 05:07 AM
  4. Multiple Images Not Working after installing TM template
    By ow-design in forum General Questions
    Replies: 4
    Last Post: 16 Aug 2007, 04:12 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR