Force SSL / https:// using .htaccess for a Content Management System (CMS)?

I have a snippet I copied from a webpage somewhere. Perhaps you could give it a try? RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}.

RewriteRule just matches the path section of the url, so it needs to be just ^index\. Php$. The query string can be matched using RewriteCond %{QUERY_STRING}.

Like in aesphere's answer, testing for the special %{HTTPS} variable is easier than checking the port. Using an absolute target URI implies R=301,L so you can remove it. QSA appends the query string So, you end up with: RewriteCond %{HTTPS} off RewriteCond %{QUERY_STRING} ^\?

Page=263$ RewriteRule ^index\. Php$ https://%{HTTP_HOST}%{REQUEST_URI} QSA.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions