Skip to content

Instantly share code, notes, and snippets.

@CB9TOIIIA
Created October 28, 2016 20:58
Show Gist options
  • Save CB9TOIIIA/a03c2d2f43f2bbc14e3936e0e1933530 to your computer and use it in GitHub Desktop.
Save CB9TOIIIA/a03c2d2f43f2bbc14e3936e0e1933530 to your computer and use it in GitHub Desktop.
HTTPS Joomla!
RewriteCond %{HTTP:SSL} !1
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [QSA,L,R=301]
RewriteCond %{HTTP_HOST} ^www\.(.*) [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ http://domain.ru/ [R=301,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment