0

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]
  • your solution is incomplete, see that http://stackoverflow.com/questions/3680463/mobile-redirect-using-htaccess – José Luis Sep 20 '13 at 12:40

1 Answers1

0

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]
anubhava
  • 761,203
  • 64
  • 569
  • 643