hii here is the url which i want to rewrite
index.php??a=cust&page=banners
in html format
i don’t how to rewrite two variable url and what give in exact url file
please tell me
hii here is the url which i want to rewrite
index.php??a=cust&page=banners
in html format
i don’t how to rewrite two variable url and what give in exact url file
please tell me
Is this question about mod_rewrite? whereby people access a web address like:
<website>/cust/banners
but behind the scenes it actually retrieves data from:
<website>/index.php?a=cust&page=banners
but how to write in .htaccess for rewriting
for example : for one query i do like this
RewriteRule ^(.*).htm index.php?a=$1 [L,QSA]
what will be for passing two ?
use $2 for second variable
i know but m confuse how to write first part as in one variable i use this ^(.*).htm
what will be for both
As a very crude example:
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^(.*)/(.*)\\.html$ index.php?a=$1&cust$b [L,R=301]
It’s better to different atoms than (.*) though, but since I have no idea what values a and cust can take I put those in for now.