[pmwiki-users] Relaxing htaccess in cookbook dir

Patrick R. Michaud pmichaud at pobox.com
Mon Apr 8 07:45:15 CDT 2013

On Mon, Apr 08, 2013 at 12:38:35PM +0530, V.Krishn wrote:
> The default pmwiki/cookbook/.htaccess has following:
> Order Deny,Allow
> Deny from all
> Will this be useful/better if it were:
> Options All -Indexes
> <IfModule mod_rewrite.c>
> RewriteEngine On
> RewriteRule !\.(js|ico|gif|jpg|jpeg|png|svg|svgz|swf|flv|css)$ index.html [L]
> # index.html or a 404
> </IfModule>

No.  The theory is that external users should never be able to access
the files in cookbook/ directly.  Publicly accessible files belong in
a pub/ directory.

> ---
> Following this
> http://pmichaud.com/pipermail/pmwiki-users/2005-March/011805.html
> Is there a way to know from cookbook via variable or method if they're farm-
> based or field-based ?

Cookbook recipes have evolved quite a bit since 2005... I suspect
one of our recipe authors has a good answer to this question.


More information about the pmwiki-users mailing list