hi, i need some help with .htaccess i want urls like: www.bla.com/gallery.php?what=disco&place=kiss&date=12112007&pic=3 to be shown like: www.bla.com/gallery/disco/kiss/12112007/3/ i use RewriteRule ^gallery/(.*)/ gallery.php?what=$1 RewriteRule ^gallery/(.*)/(.*)/ gallery.php?what=$1&place=$2 ... but this only works when your url is www.bla.com/gallery/disco/ when your url is www.bla.com/gallery/disco/kiss/ (...) doesn't work. so, can someone help me somehow? thanks!
Try changing RewriteRule ^gallery/(.*)/(.*)/ gallery.php?what=$1&place=$2 to RewriteRule ^gallery/(.+?)/(.+?)/ gallery.php?what=$1&place=$2
This this one: RewriteEngine On RewriteRule ^([^/]*)/([^/]*)/([^/]*)/([^/]*)\.html$ /gallery.php?what=$1&place=$2&date=$3&pic=$4 [L] It doesn't have the word gallery in the URL, but it's a start.