Hi Everyone, I am looking for some help with a htaccess rewrite rule.
At the moment I have
RewriteRule ^(.+)$ /profile.php?slug=$1 [QSA,L]
As one rewrite rule in my htaccess file, this works as expected and rewrites my url to domain/user-name
(profile.php is in my root domain)
What I am trying to do now is rewrite
domain/dir/detail.php?title=junior-real-estate-personnel-required&ref=29681097
To
domain/dir/junior-real-estate-personnel-required
How can I get the url to look like above whilst still bringing back the correct information from the backend database.
Is it possible?
If all my links on the website point to domain/dir/title
How will the database know what information to display if I have two identical titles?