htaccess 872 B

1234567891011121314151617181920212223242526272829303132
  1. RewriteEngine on
  2. RewriteCond %{SCRIPT_FILENAME} !-d
  3. RewriteCond %{SCRIPT_FILENAME} !-f
  4. RewriteCond $1 !^(index\.php)
  5. RewriteRule ^(.*)$ index.php/$1 [L]
  6. #RewriteCond %{HTTPS} off
  7. #RewriteCond %{HTTP_HOST} ^maastikuarhitektuur\.ee$ [NC]
  8. #RewriteRule ^ https://www.maastikuarhitektuur.ee%{REQUEST_URI} [R=302,L]
  9. # Redirect www to non-www
  10. #RewriteEngine on
  11. #RewriteBase /
  12. #RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
  13. #RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
  14. # Redirect non-www to www
  15. #RewriteEngine On
  16. #RewriteBase /
  17. #RewriteCond %{HTTP_HOST} !^www\. [NC]
  18. #RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
  19. #RewriteCond %{HTTPS} off
  20. #RewriteCond %{HTTP_HOST} !^www\.(.*)$ [NC]
  21. #RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
  22. #RewriteCond %{HTTPS} on
  23. #RewriteCond %{HTTP_HOST} !^www\.(.*)$ [NC]
  24. #RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]