Here's an example URL to a user profile on my site: http://127.0.0.1:8080/overview/showuserprofile/user
I want it to be:
http://127.0.0.1:8080/user
This is what I have for rewrite rules:
Options -MultiViews
RewriteEngine On
RewriteBase /php-login/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
That gets rid of the .php
at the end.
I've also tried adding
RewriteRule ^(.+)$ index.php?url=/overview/showuserprofile/$1 [QSA,L]
But the URL would change and not any of the pages.
Any ideas?