Home Apache Rewrite URL to mobile site
 I need to rewrite our url based on user-agent. I can filter the user agent using apache RewriteCond but my rewrite rule doesn't work. This is what I need. Original URL https://www.myhost.com/#!/string1/string2/myitem/ to this https://www.myhost.com/string1/m/string2/myitem.html Note the #! symbols is removed My configuration is this.  RewriteCond %{REQUEST_URI} /([^/]+)/\$ #Now redirect to the mobile site RewriteRule ^ https://%{HTTP_HOST}/string1/m/%1.html [R,L]  My server is Centos 6.4 and httpd-2.2.15. Thanks in advance for your help.