|
Okay here's the problem in how apache processes a certain rule differently than litespeed - it might be difficult for you to setup a test environment, though maybe you can do a quick wordpress install
/~demosite has a blog installed in /~demosite/blog/
To keep all the htaccess rules in the top-most directory, this is perfectly acceptable in apache
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog
RewriteCond %{REQUEST_FILENAME} ^/home/demosite/public_html/blog/.*$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule>
However litespeed does not like this.
For litespeed, these rules MUST be in .htaccess in /blog/ not /
I have no idea why. But again, works in apache, not in litespeed
This is what was messing up all the 404 error documents (except for the 404 "missing" which still does not work)
Last but not least there is also a very minor issue in how litespeed treats:
/~demosite/images/ as a 404 missing error, when it should be a 403 forbidden error because of -Indexes in a top-most .htaccess (or httpd.conf) This is trivial however compared to the other issue.
|