New Zenner
- Join Date:
- Jan 2009
- Posts:
- 85
- Plugin Contributions:
- 0
.htaccess rewrite with folders and Private SSL?
Hello,
I just installed a SSL certificate,
and i would like to know is there any way to do a mod rewrite,
that turns and work https://www.domain.com to a sub-folder but still shows https://www.domain.com on the title bar, instead of www.domain/com/folder when applying a redirect.
This is what i done and works in http, but no longer true in SSL servers,RewriteEngine on
#RewriteCond %{HTTP_HOST} ^(www.)?domain.com$
#RewriteCond %{REQUEST_URI} !^/main/
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule ^(.*)$ /main/$1
#RewriteCond %{HTTP_HOST} ^(www.)?domain.com$
#RewriteRule ^(/)?$ main/index.php [L]