I have the following url
http://www.***.org/aaddress.php?state=nm&office_id=852&office_name=CLOVIS&state_name=New%20Mexico
I want to change it below.
http://www.*****.org/aaddress-state-nm-office_id-852-office_name-CLOVIS-state_New%20Mexico.php
I used below htaccess code
Options +FollowSymLinks RewriteEngine on RewriteRule aaddress-state-(.*)-office_id-(.*)-office_name-(.*)-state_name-(.*)\.php aaddress.php?state=$1&office_id=$2&office_name=$3&state_name=$4
It does not work, when I press the record button, the address did not translate to the .php page
My links inside the pages as the 1st link and you want to change it as a .php link
source share