PDA

View Full Version : rewrite for missing files


ofsen
07-28-2008, 05:08 AM
Hi,

I have a rewrite rule for missing files like:

RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule (.*) http://www.xxxxx.com/system_scripts/missingImage.php?ft=$1 [L]

This means that if the file or directory is not valid redirect to xxx.com/....missingImage.php. Is there way to achive this in litespeed?

mistwang
07-28-2008, 08:38 AM
The same rule works with LSWS.