Mod_rewrite .htaccess HTTPS?

Use these rules: Options +FollowSymLinks RewriteEngine on RewriteBase / # force www domain name RewriteCond %{HTTP_HOST} ^mydomain. Com NC RewriteRule ^(.*)$ mydomain.com/$1 L,R=301 # force HTTPS for some pages RewriteCond %{HTTPS} =off NC RewriteRule ^user/? $ https://www.mydomain.com/user/ R=301,L RewriteRule ^user/$ public/index.

Php? Var1=x&var2=y L,QSA It will redirect to HTTPS: if HTTP is current protocol (so no redirection if already on HTTPS) regardless of trailing slash presence: both user and user will do the job (but will do nothing if user/something-here will be requested).

Use these rules: Options +FollowSymLinks RewriteEngine on RewriteBase / # force www domain name RewriteCond %{HTTP_HOST} ^mydomain. Com NC RewriteRule ^(.*)$ mydomain.com/$1 L,R=301 # force HTTPS for some pages RewriteCond %{HTTPS} =off NC RewriteRule ^user/? $ https://www.mydomain.com/user/ R=301,L RewriteRule ^user/$ public/index.

Php? Var1=x&var2=y L,QSA It will redirect to HTTPS: if HTTP is current protocol (so no redirection if already on HTTPS) regardless of trailing slash presence: both /user and /user/ will do the job (but will do nothing if /user/something-here will be requested).

" mark makes it an ungreedy modifier. – ninu Jul 29 at 15:02.

$ public/index. Php? Var1=x&var2=y L,R=301 RewriteRule ^user/?

$ https://mydomain.com/user/ L,QSA RewriteRule ^(.*)/? $ mydomain.com/$1 L,R=301.

So that ends up in an infinite loop and the browser stops :(. You essentially get: mydomain. Com/https:/mydomain.com/login as the message in Safari when I just tested.

– ninu Jul 29 at 6:23 1 This any better? – neokio Jul 29 at 6:32 Yeah this is giving me an Internal Server Error. – ninu Jul 29 at 7:37.

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