hello i need help to rewrite these urls my urls looks like this /index.php?module=video&id=1228&comm_page=2 Code (markup): i want it like this example /video/1228/somethingelse/comm_page/2 Code (markup): any help plz
RewriteRule ^index\.php?module=video&id=1228&comm_page=2$ video/1228/somethingelse/comm_page/2 [L] Code (markup): Should work.
I thought you had to use a RewriteCond %{QUERY_STRING} line as well as ReWrite rule if you had parameters? It's explained here http://designertuts.com/htaccess-stopping-page-not-found-errors/ Mike
thank you but it didn't work . here is my htaccess now my old url is like index.php?module=video&id=$1 Code (markup): and being rewrited as /video/137/video_title Code (markup): so i added a comment system which added a new string like index.php?module=video&id=$1&comm_page= Code (markup): so here is my htaccess RewriteRule ^video/([0-9]+)/([^/]*)/?$ index.php?module=video&id=$1 [L] Code (markup):