.htaccess not get variablas that not set on external -
i have set category type getcategorytype1
, getcategorytype2
, getcategorytype3
i write code in .htacces
rewriterule ^getcategorytype1/(.*) category.php?getcategory=type1&q=$1 rewriterule ^getcategorytype2/(.*) category.php?getcategory=type2&q=$1 rewriterule ^getcategorytype3/(.*) category.php?getcategory=type3&q=$1
if pass url mysite.com/categorytype1/
work fine getcategory=type1
but if want pass other variables mysite.com/categorytype1/?var=123
var
not getting
how possible variables ?
you need parse request through ...
for example:
rewriterule ^getcategorytype1/(.*) category.php?getcategory=type1&q=$1 [qsa,l]
qsa solution
Comments
Post a Comment