
02-23-2010, 02:53 AM
|
|
LiteSpeed Staff
|
|
Join Date: Sep 2009
Posts: 2,223
|
|
I just did test on localhost(4.0.13 standard version), it's working as expected.
rewrite rule:
Quote:
RewriteCond %{ORG_REQ_URI} ^/a/block/
RewriteRule ^/a/block/ - [R=403,F]
|
/a/b/test.php
Quote:
<?php
header("X-LiteSpeed-Location: /a/block/test.html");
?>
|
when access directly:
Code:
http://localhost/a/block/test.html
403 Forbidden
when access via
Code:
http://localhost/a/b/test.php
output content of /a/block/test.html
|