Page is a not externally linkable
- Code, Content, and Presentation
-- Perl Server Side CGI Scripting
---- A Close to perfect .htaccess ban list


carfac - 11:44 pm on Oct 4, 2002 (gmt 0)


Annii:

RewriteRule !^403.htm$ - [F,L] (in particular the F,L bit) mean at the end?

RewriteRule- The conclusion of all thos conditions, and the terminator of that. In means that if any (*you use [OR]) of those conditions exist, do this.

!- this means not
^- means the request string BEGINS EXACTLY
403.htm- name of your 403 file
$- ends exactly (the above will not match 403.html!)

- means do nothing

F means this is forbidden- return FORBIDDEN (403)
L means LAST, do nothing further and end all rewrite rules for any requests effected by this block

Is it better to use absolute or relative paths for the error documents?

for the first part of the rewriterule, use a URI from the root directory
for the seconf part, you HAVE to use a full URL (http://www.domain.com/)

How can I check that it's working once I've uploaded it?

I would recommend going to [wannabrowser.com...]

and spoofing your UA!

Good Luck!

dave


Thread source:: http://www.webmasterworld.com/perl/687.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com