mod_rewrite help can't get it to work

Posted by Maenny on Stack Overflow See other posts from Stack Overflow or by Maenny
Published on 2010-05-11T14:52:05Z Indexed on 2010/05/11 14:54 UTC
Read the original article Hit count: 222

Filed under:
|

Hi Folks,

This is the first time I use mod_rewrite and I can't get it to work. I have a website with bands and their IDs. What I want:

a URL /bands/My_Band_id13/ should redirect to /bands/index.php?bandname=My_Band&bandID=13

What I have:

RewriteRule ^/bands/(.*)_id(.*)/$ /bands/index.php?bandname=$1&bandID=$2

What am I doing wrong?

THx,

Maenny

© Stack Overflow or respective owner

Related posts about mod-rewrite

Related posts about .htaccess