Why this rule:
RewriteRule ^(.*)/([1-9]+)[^/]$ /$1/?utm_source=$2 [R,L]
work with R flag and without it doesn’t work.
What’s the problem ?
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.
Because without the
Rflag it’s internal rewrite, it’s not an actual redirect.You can do some search on your own:
Two hints to help you doing the job faster:
Please try to use the
RewriteLogdirective: it helps you to track down problems:My favorite tool to check for regexp:
https://regex101.com/ (don’t forget to choose ereg(POSIX) instead of preg(PCRE)!)
You use this tool when you want to check the URL and see if they’re valid or not.