Files
anwi_website/.htaccess
T
2023-05-25 12:33:00 +05:30

11 lines
268 B
ApacheConf

RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
RewriteRule ^ https://%1%{REQUEST_URI} [L,NE,R=301]
#index.html redirect
RewriteRule ^index\.html$ https://anwisystems.com/ [R=301,L]