Vote count:
0
I want to force https://www.domain.com on my domain excluding some routes.
301 Redirections:
- domain.com => https://www.domain.com (not working)
- www.domain.com => https://www.domain.com (not working)
- http://www.domain.com => https://www.domain.com (not working)
Excludes:
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
htaccess https off only for specified routes
Aucun commentaire:
Enregistrer un commentaire