hi how can i get full url with & sign
RewriteRule category/(.*)$ categories.php?url=$1 [PT,L]
my url is category/pets-&-wets/ but when i get
echo $_GET[‘url’]; it shows only pets-
any suggestions thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That’s happening because the
&marks the start of anotherGETargument – since the rewritten URL would end up looking likecategories.php?url=pets-&-wet.You need to encode your
&as%26, so your URL iscategory/pets-%26-wet.Better still, whatever is generating your slugs replaces ampersands by
and, so your URL would becategory/pets-and-wet.