This is my auto generated htaccess file
RewriteEngine on
RewriteCond %{HTTP_HOST} ^m\.rgaads\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.m\.rgaads\.com$
RewriteRule ^/?$ "m\.rgaads\.com\/index\.html" [R=301,L]
This is my auto generated htaccess file
RewriteEngine on
RewriteCond %{HTTP_HOST} ^m\.rgaads\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.m\.rgaads\.com$
RewriteRule ^/?$ "m\.rgaads\.com\/index\.html" [R=301,L]
You can just add DirectoryIndex
to avoid above rule:
DirectoryIndex index.html
PS: You need to put http://
in target URL or use target without domain name if used in same host:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www\.)?m\.rgaads\.com$ [NC]
RewriteRule ^/?$ /index.html [R=301,L]