What is wrong with my RewiteRule? RewriteEngine On RewriteRule ^List/?(.*?)&time=([^&]+) List/$1.php?time=$2 I want to remove question mark(?) after List/ : http://mydomain.find.com/List/?variableName.php?time=variables redirect to: http://mydomain.find.com/List/variableName.php?time=variables Thanks, MK
change RewriteRule ^List/?(.*?)&time=([^&]+) List/$1.php?time=$2 to RewriteRule ^List/(.*?)&time=([^&]+) List/$1.php?time=$2
Thanks for your reply. It did not work. This is the out put of rewrite log file: applying pattern '^List/(.*?)&time=([^&]+)' to uri '/List/' Should not I use RewriteCond %{QUERY_STRING}? Thanks for your help. MK