Forum Moderators: phranque
I am using the following rules.
RewriteRule ^/appmanager/bg/main/([^/]+)/([^/]+)/([^/]+)/([^/]+)/?$ /appmanager/bg/main?_nfpb=true&_state=maximized&_pageLabel=$1&_windowLabel=$2&categoryId=$3&categoryName=$4 [NE,PT,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /appmanager/bg/main\?_nfpb=true&_state=maximized&_pageLabel=([^/]+)&_windowLabel=([^/]+)&categoryId=([^/]+)&categoryName=([^/]+)\ HTTP/
RewriteRule ^/appmanager/bg/main$ [%{HTTP_HOST}...] [NE,R=301,L]
The categoryName parameter in the Query String has got values with "&" and with out "&". Example. "Business Licenses & Permits".
The string "& Permits" protion is getting truncated and the string portion "Business Licenses" is only getting displayed instead of "Business Licenses & Permits" in the Page. How to handle "&" in the ModRewrite Rule
You help is highly appreciated. Thanks in Advance.
I suppose you could also use PHP to encode those "&" characters, so that the RewriteCond would see "%26" instead of "&". Or even double-encode them if necessary, resulting in "%2526".
Jim