Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- Help understanding a rewritecond


SteveWh - 1:43 am on Dec 13, 2011 (gmt 0)


%{ NAME_OF_VARIABLE } is the standard way of referencing the predefined variables: [httpd.apache.org...]

The dash (where the URI of the substitution page would usually be) is a placeholder (or there might be a better name for it) indicating that there is no page to rewrite to. That line is the standard format for a Forbidden response.

The effect of your code is to give a 403 Forbidden response if both the referer and user-agent are blank, no matter what the requested page was.

In this case, because no text is actually being matched, the two [NC] (No Case = case insignificant) are unnecessary.


Thread source:: http://www.webmasterworld.com/apache/4397270.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com