Hello, I'm having some trouble in a simple (at least I think so) rewrite rule: I want to return 404 for all php files.
But I should also take in care that they can have a path info (so something like
I've noticed that, on apache, I can easily do that using
How I can do that in litespeed? Even without rewrite rules, ofc.
Regards.
But I should also take in care that they can have a path info (so something like
http://www.example.com/foo.php/bar
) or that a path can have .php (e.g.: http://www.example.com/foo.php/bar.jpg
where foo.php is a directory and this should not be blocked).I've noticed that, on apache, I can easily do that using
${LA-U:REQUEST_FILENAME}
but (open)litespeed doesn't support it.How I can do that in litespeed? Even without rewrite rules, ofc.
Regards.
Last edited by a moderator: