I am trying to remove ?id=
from the URL and replace ?id=
with a slash (/
).
I want to show the address:
http://localhost/new/view-seller?id=534f5ddbdd
As:
http://localhost/new/view-seller/534f5ddbdd
I have managed to delete the .php
from the URL, but I have still issues with ?id=
The original link with ?id=
accessible. When I navigate to the page without ?id=
I get: The requested URL was not found on this server.
Does someone know how I can fix this?
Here is my .htaccess
:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php [NC,L]