.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.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -