My current project needs some cleaner urls. I got it until the ID part like http://test.com/profile/1337(additional backslash)
I want to hide the "ugly" stuff like http://test.com/profile.php?plid=1337&action=view that would appear. Users shouldn't see this.
Already tried to add some "hardcoded" params like
RewriteRule ^profile/([0-9\_]+)/history/?$ ./profile.php?plid=$1&action=history [NC,QSA]
Also tried to change [NC,QSA] to [L,QSA], [QSA,L], [NC,QSA,L] and so on.
These are my rewrite rules currently not working
RewriteRule ^profile/([0-9\_]+)/edit/?$ ./profile.php?plid=$1&action=edit [NC,QSA]
RewriteRule ^profile/([0-9\_]+)/history/?$ ./profile.php?plid=$1&action=history [NC,QSA]
And this rule is working fine
RewriteRule ^profile/([0-9\_]+)/?$ ./profile.php?plid=$1&action=view [NC,QSA]
I want to display some buttons like "history, edit" if the action is "view" (which works fine at the moment)
Expecting a working url like https://test.com/profile/1337/history
(Where $action should be 'history')
My error is currently a 404 page not found.
[Sat Sep 07 11:36:20.981057 2019] [:error] [pid 20923] [client ip:port] script '/var/www/main/hk/profile.php' not found or unable to stat