.htaccess - redirect m.php to m.domain.com htaccess -
is possible redirect
http://www.url.com/m.php?name=bill
to
http://m.url.com/bill/
via htaccess?
i have seen examples i'm not sure use accomplish that
how about:
rewriteengine on rewritecond %{http_host} ^(www\.)?url\.com$ [nc] rewritecond %{the_request} \ /+m\.php\?name=([^&\ ]+) rewriterule ^ http://m.url.com/%1/? [l,r] rewritecond %{http_host} ^m\.url\.com$ [nc] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^([^/]+)/?$ /m.php?name=$1 [l,qsa]
assuming both m.url.com , www.url.com point same document root.