I have this scenario: site.com/dir/watch.php?category=main&movie=moviename i want to make it site.com/dir/watch/main/moviename I place .htaccess into dir RewriteEngine on RewriteRule ^watch/(.+)/(.+)\.html$ watch.php?category=$1&movie=$2 Code (markup): and few variations... but it do not work.... It open watch.php but seams that category and movie name can not "get" So it show watch.php without parametars.
I don't know if (.+) is a valid expression, maybe it was just a fluke it didn't work for me once. try replacing it with (.*) if it still doesn't work, try adding [QSA,L] to the end of the htaccess entry.
Options +FollowSymLinks RewriteEngine on RewriteRule watch/(.*)/(.*)/$ watch.php?category=$1&movie=$2 use that
Actually, you'll want to change that to: RewriteRule ^watch/(.*)/(.*)/?$ watch.php?category=$1&movie=$2 Code (markup): As the / can sometimes be forgotten.