okie, here is an update:
cleverpork's site was using shared ssl, so when you click on the https link it will direct you to different domain, in our case we have
normal link:
http://thesite.com/catalog
https link:
https://some_shared_ssl_link.com/~subfolder/catalog
And here is the fix which appears to be working fine:
Code:
#### BOF SSU
Options +FollowSymLinks -MultiViews
RewriteEngine On
# Make sure to change "test_site" to the subfolder you install ZC. If you use root folder, change to: RewriteBase /
RewriteBase /~subfolder/catalog/
# Deny access from .htaccess
RewriteRule ^\.htaccess$ - [F]
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*) index.php?/$1 [E=VAR1:$1,QSA]
# STRIP THE REWRITEBASE RULE FROM NON-SSL CONNECTIONS.
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} ^/~subfolder/
RewriteRule ^(.*) /catalog/index.php?/$1 [E=VAR1:$1,QSA,L]
#### EOF SSU
On a side note, I notice that when ZC is placed under subfolder, some of you set configure.php like this:
Code:
define('HTTP_SERVER', 'http://www.site.com/subfolder');
define('HTTPS_SERVER', 'https://secure.site.com/~username/subfolder');
This may work in the normal ZC setting, but it will cause SSU to malfunction. You need to set like this:
Code:
define('HTTP_SERVER', 'http://www.site.com');
define('HTTPS_SERVER', 'https://secure.site.com');
define('DIR_WS_CATALOG', '/subfolder/');
define('DIR_WS_HTTPS_CATALOG', '/~username/subfolder/');
So basically, the http ones should contain only the domain name, no sub folders at all.
Bookmarks