View Single Post
  #6  
Old 02-23-2010, 02:53 AM
NiteWave NiteWave is online now
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
Reply With Quote