Quantcast
Channel: LowEndTalk
Viewing all articles
Browse latest Browse all 62431

mod_rewrite && (open)litespeed: how to return 404 for all files with php extension?

$
0
0

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 http://www.example.com/foo.php/bar).

I've noticed that, on apache, I can easily do that using ${LA-U:REQUEST_FILENAME} but litespeed doesn't support it.

Someone have some ideas on how I can do that in litespeed? Even without rewrite rules, ofc.

Regards.


Viewing all articles
Browse latest Browse all 62431