view .htaccess @ 24:b23b8f2a8c91

Lutte anti-spam: on vérifie que le commentaire provient du formulaire du blog
author Franck Deroche <webmaster@defr.org>
date Sat, 27 Oct 2007 11:40:07 +0200
parents 3b7c1400f89a
children 5eb974b45cb1
line wrap: on
line source
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^dualblog.atom$ atom.php
RewriteRule ^dualblog.rss$ rss.php
RewriteRule ^posts/$ index.php [L]
RewriteRule ^posts/([0-9]+)/([0-9]{1,2})$ index.php?mode=cal&year=$1&month=$2 [L]
RewriteRule ^posts/([0-9]+)-(.*)$ comment.php?id=$1 [L]
RewriteRule ^posts/(.*)$ comment.php?id=$1 [L]
RewriteRule ^tags/(.*)$ index.php?mode=tag&tag=$1 [L]

<Files admin*.php>
    #  AuthUserFile "w:\www\blog\.htpass"
    AuthUserFile "/home/defrnet/defr.net/blog/.htpass"
    AuthGroupFile /dev/null
    AuthName "Dual Blog - Administration"
    AuthType Basic
    require valid-user
    #  Order Deny,Allow
    #  Deny from all
    #  Allow from 127.0.0.1
</Files>