I have a site regolary going on ssl at this url:
https://tor.gabrix.ath.cx but for users connecting to http:// mod rewrite is not doing his job for some reason.Here my mod rewrite rules i'm using placed in the virtualhost bit:
Code:
RewriteEngine On
Options +FollowSymlinks
RewriteCond %{HTTPS} !=on
RewriteRule ^/(.*) https://%{tor.gabrix.ath.cx}/$1 [R,L]
And i'm also trying with this other one:
Code:
RewriteEngine On
Options +FollowSymlinks
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^/*(.*)$ https://tor.gabrix.ath.cx/$1 [L,R]
I'm not much into regex (not at all !) and even if i understand what they mean maybe it's just a detail that makes the right rule.I have also tryied to place this rules in a .htaccess but maybe the error is somwhere else .Thanx !