How do I rewrite this url:
domain.com/bands/band-name/album-name/
to:
domain.com/bands.php?bname=band-name&aname=album-name?
Rewrite url's
Moderator: General Moderators
-
klevis miho
- Forum Contributor
- Posts: 413
- Joined: Wed Oct 29, 2008 2:59 pm
- Location: Albania
- Contact:
Re: Rewrite url's
Maybe:
[text]RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule /bands/(.+)/(.+)/ /bands.php?bname=$1&aname=$2[L][/text]
[text]RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule /bands/(.+)/(.+)/ /bands.php?bname=$1&aname=$2[L][/text]
There are 10 types of people in this world, those who understand binary and those who don't
-
klevis miho
- Forum Contributor
- Posts: 413
- Joined: Wed Oct 29, 2008 2:59 pm
- Location: Albania
- Contact:
Re: Rewrite url's
what if i then want to rewrite just /bands/?