how to redirect multiple variable url with htaccess ......... I want to redirect this url : http://www.example.com/demo.php?var1=var11&var2=var22&var3=var33 after redirect I want to url : http://www.example.com/demo.php/var11/var22/var33
Hi, Try this rewrite rule: RewriteRule ^demo.php/([^/]+)/([^/]+)/([A-Za-z0-9_-]+)$ demo.php?var1=$1&var2=$2&var3=$3 [NC,L] Code (markup):
hey MarPlo, RewriteRule ^demo.php/([^/]+)/([^/]+)/([A-Za-z0-9_-]+)$ demo.php?var1=$1&var2=$2&var3=$3 [NC,L] i am try this code but it's not work I think in this code required RewriteCond..... So, plz tell me some other..........
Hi, Try with this code: Options +FollowSymLinks RewriteEngine On RewriteRule ^demo.php/([A-Za-z0-9_-]+)/([A-Za-z0-9_-]+)/([A-Za-z0-9_-]+)$ demo.php?var1=$1&var2=$2&var3=$3 [NC,L] Code (markup): If it not works, maybe the server not supports mod-rewrite. I don't know other solution, maybe someone else.