Hi,
LSWS - Enterprise 4.1.13 on CENTOS 5.8 i686
I tried enabling rewrite logging and nothing showed up in the logs.
The problem does not happen with LSWS 4.1.12 and does not happen when switching to Apache
Rewrites fail when the user's directory is being used to access the page.
Here are example URLs that fail
http://123.123.123.123/~someuser/parent-page/child-page/
-- loads the page found and /parent-page/
http://123.123.123.123/~someuser/parent-page/child-page
-- Generates a 403 error
(the same errors occur when using the host name with user's directory:
http://host.server.com/~someuser/....
Rewrite Rules:
When using rewrite rules to add a trailing slash where there is none, a 404 not found error is found instead of a 403.
The rewrite rules have been ok on LSWS for the last couple years for 100 + accounts. The rewrite rules work on all Apache 2.x versions.
I switched to lsws 4.1.12 in the meantime.
Many Thanks!
LSWS - Enterprise 4.1.13 on CENTOS 5.8 i686
I tried enabling rewrite logging and nothing showed up in the logs.
The problem does not happen with LSWS 4.1.12 and does not happen when switching to Apache
Rewrites fail when the user's directory is being used to access the page.
Here are example URLs that fail
http://123.123.123.123/~someuser/parent-page/child-page/
-- loads the page found and /parent-page/
http://123.123.123.123/~someuser/parent-page/child-page
-- Generates a 403 error
(the same errors occur when using the host name with user's directory:
http://host.server.com/~someuser/....
Rewrite Rules:
Code:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?page=$1 [QSA,L]
The rewrite rules have been ok on LSWS for the last couple years for 100 + accounts. The rewrite rules work on all Apache 2.x versions.
I switched to lsws 4.1.12 in the meantime.
Many Thanks!