I have created a rule for the .htaccess in order to show static urls instead of dynamic ones.
This is the dynamic url:
www.example.com/user.php?id=410&Name=Dave&Surname=Watson
converted into static:
www.example.com/registered-user-410-Dave-Watson.html
The rule I am using is:
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^example-([^-]*)-([^-]*)-([^-]*)\.html$ /user.php?id=$1&Name=$2&Surname=$3 [L]
The static URL I would like to have is following:
www.example.com/registered-user-Dave-Watson.html
If I use this rule:
RewriteEngine On
RewriteRule ^example-([^-]*)-([^-]*)\.html$ /user.php?id=410&Name=$1&Surname=$2 [L]
I obtain the desired result but all users show the information of the user with the id 410.
Could you please help me to find a solution?