I want to convert example.com/index.html?shop=5
to
shop5.example.com.
Here is the code which i have implemented
- Code: Select all
Options +FollowSymLinks
Order deny,allow
RewriteEngine on
RewriteCond %{QUERY_STRING} ^([a-zA-Z0-9]+)\=(.*)
RewriteRule (.*) http:\/\/%1%2\.example.com\/? [R=301,L]
It's working almost all the browsers except IE . can anyone please modify so it can work in IE as well.
Thanks.