lundi 30 mars 2015

htaccess https off only for specified routes


Vote count:

0




I want to force https://www.domain.com on my domain excluding some routes.


301 Redirections:



  1. domain.com => https://www.domain.com (not working)

  2. www.domain.com => https://www.domain.com (not working)

  3. http://www.domain.com => https://www.domain.com (not working)


Excludes:



  1. http://ift.tt/1GGg3J7 => http://ift.tt/1GGg3J7

  2. http://ift.tt/1GGg67Z => http://ift.tt/19nlT53

  3. ...


What I have done so far:



DirectoryIndex index.php
RewriteEngine on
RewriteBase /

RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} ^(init|posts) [NC]
RewriteRule ^(.*)$ http://ift.tt/LqFEWY [R=301,L]

RewriteCond $1 !^(index\.php|robots\.txt|website|favicon\.ico|style\.css|sitemap.xml)
RewriteRule ^(.*)$ ./index.php?/$1 [L]


asked 1 min ago

mallix

872






htaccess https off only for specified routes

Aucun commentaire:

Enregistrer un commentaire