Biz Connection FREE TRIAL + $75 GOOGLE ADWORD - FREE VOUCHER for YOU!

SSU module and .htaccess

All looks good and it works as long as your ZenCart is imstalled in the root.

Problems appear when you have ZenCart installed in /shop folder for example.

To understand better I will take and example:

website: olalawebsite.com/shop

absolute path on hosting server: /home/olala/public_html/shop

The make your website to display correct your products / pages you must change 2 files :

includes/configure.php

define(‘HTTP_SERVER’, ‘http://olalawebsite.com’);
define(‘HTTPS_SERVER’, ‘https://olalawebsite.com’);

..

define(‘DIR_WS_CATALOG’, ‘/shop/’);
define(‘DIR_WS_HTTPS_CATALOG’, ‘/shop/’);

..

define(‘DIR_FS_SQL_CACHE’, ‘/home/olala/public_html/shop/cache’);

.htaccess

RewriteEngine On

# Don’t rewrite any URIs ending with a file extension (ending with .[xxxx])
RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,4}$
# Don’t rewrite admin directory
RewriteCond %{REQUEST_URI} !^/shop/admin.* [NC]
# Don’t rewrite editors directory
RewriteCond %{REQUEST_URI} !^/shop/editors.* [NC]
# Don’t rewrite cPanel directories
RewriteCond %{REQUEST_URI} !/shop/cpanel.* [NC]
RewriteCond %{REQUEST_URI} !/shop/frontend.* [NC]
# Handle all other URIs using Zen Cart (index.php)
RewriteRule (.*) index.php?%{QUERY_STRING} [L]

Note: ALL ABOVE (htaccess) ARE JUST  example, fell free to add as many “allow/deny” as you wish.

Contact OLALA for any custom request. We can do absolutely anything you may wish with ZenCart.

Random article

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Leave a Comment