I am trying to use a .htaccess file to change my URLs from
xxx/table/change.php?id=1
to
xxx/table/change/1
I have the following code in my .htaccess file, which is in the root folder of my web site.
RewriteEngine On
RewriteRule ^change/([^/\.]+)/?$ change.php?id=$1 [L]
RewriteRule ^change/([^/\.]+)/?$ change.php?id=$1 [L]
However when I restart Apache and visit the desired URL, it still shows up as
xxx/table/change.php?id=1
Any suggestions?
mod_rewrite is uncommented in the httpd.conf file.