Forum Moderators: phranque
I am working with mod rewrite with the following rule
RewriteRule ^([^.]+)/$ category_har.php?CatName=$1 [T=application/x-httpd-php]
it works fine for all category names if they have even single, double quotes etc but if some category has & symbol in its name then I get wrong value in CatName variable sent from htaccess
e.g
domain.com/books-&-pens/
this will give me
CatName=books-
and not the rest of the portion.
Can anybody help please how to get full value including & symbol?
thanks
Many thanks in advance for shedding light on this matter.
Otherwise, as you have observed, Apache takes the "&" to indicate the end of one query parameter, and the beginning of another, as required by the standard cgi query-handling rules.
Jim