View Single Post
  #6  
Old 02-02-2013, 06:49 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
tested, following rewrite rules meet your requirement:
Quote:
RewriteCond %{ORG_REQ_URI} ^/abc/ [NC]
RewriteRule .* /null.txt [L,S=1]

RewriteRule ^!/(.*) /abc/$1 [L]
maybe there is other work around, but in above example, have introduced litespeed's special %{ORG_REQ_URI} which differ with %{REQUEST_URI} in that it's the original request URI --- do not change during rewrite process.

and with %{ORG_REQ_URI}, no need ENV:REDIRECT_STATUS
Reply With Quote