Url rewrite rule

Posted by vvr on Super User See other posts from Super User or by vvr
Published on 2012-06-27T07:12:14Z Indexed on 2012/06/27 9:18 UTC
Read the original article Hit count: 178

Filed under:
|
|
|

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

© Super User or respective owner

Related posts about linux

Related posts about apache