I want to rewrite my URL
From:
https://example.com/fr/transporter/transporterPublicProfile.php?profil=1927
To:
https://example.com/fr/profil-des-transporteurs/1927
When a user visits this URL:
https://example.com/fr/transporter/transporterPublicProfile.php?profil=1927
It should look like this:
https://example.com/fr/profil-des-transporteurs/1927
And if the user visits this URL:
https://example.com/fr/profil-des-transporteurs/1927
He must remain as he is.
I have tried so far:
RewriteRule ^profil-des-transporteurs/(.*)$ /fr/transporter/profil.php?oid=$1 [L]
It changes the URL as I want, but the problem is that the links on this page are not working properly. The page uses relative paths for images, etc. Wrt new url ie:
https://example.com/fr/profil-des-transporteurs/
source share