I am very new to this stuff. I have a website with these RewriteCond
/RewriteRule
directives.
Options All -Indexes
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.+)$ index.php?page=$1 [QSA,L]
So far everything works on my website but I have a small issue. I will try to explain it.
https://example.com/login
[Shows the login page]https://example.com/asdasdasd
[Shows the 404 not found page]https://example.com/login/asdasdasd
[Shows the login page too but it should show 404 not found page]https://example.com/login%F0%9F%91%88%F0%9F%91%88%F0%9F%91%88
[Shows the login page too but it should show 404 not found page]
and I would like that every Query parameter will be removed.
If I open https://example.com/login?fbclid=IwAR2w6Ff
that it redirects back to https://example.com/login