Url rewrite rule
- by vvr
How to redirect a page form show.php?id=(15charstring) to show/(15charstring)
I tried like this it is doing reverse means it is redirecting /show/(15chars) to show.php?id=(15chars)
RewriteEngine on
RewriteRule ^/show/([a-zA-Z0-9]{15})$ http://site.com/show.php?id=$1
Second case is i have to redirect to another page if he added &m=true to the url
show.php?id=(15chars)&m=true
html/show.php?id=(15chars).