If there is a space in the original url, how can I express the space?
Example:
RewriteRule ^ Activites/([A-Za-z] *) $ pages % 20 referencement/le-bon-courtier-nos-activites-$ 1.php
I replaced the space with % 20, but unfortunately, it doesn't work.
I took the space and used it.
Please advise me.
Reply to discussion (solution)
The url obtained by apache has been decoded. of course, you cannot write it in this way, but you need to add dual-reference inclusion to ensure the complete string and $ escape. In this way, you can write it.
RewriteRule ^ Activites/([A-Za-z] *) $ "pages referencement/le-bon-courtier-nos-activites-$ 1.php"
The url obtained by apache has been decoded. of course, you cannot write it in this way, but you need to add dual-reference inclusion to ensure the complete string and $ escape. In this way, you can write it.
RewriteRule ^ Activites/([A-Za-z] *) $ "pages referencement/le-bon-courtier-nos-activites-$ 1.php"
Thank you. I have been taught ~