====== .htaccess ====== ===== Pass protect ===== AuthUserFile /home/folder/private/.htpasswd AuthName "Nome legal" AuthType Basic Require valid-user $ htpasswd -c .htpasswd nofxx .htaccess AuthUserFile /usr/local/you/safedir/.htpasswd AuthGroupFile /dev/null AuthName XXX AuthType Basic require valid-user ===== DokuWiki rewrite ===== ## Enable this to restrict editing to logged in users only ## You should disable Indexes and MultiViews either here or in the ## global config. Symlinks maybe needed for URL rewriting. #Options -Indexes -MultiViews +FollowSymLinks ## make sure nobody gets the htaccess files Order allow,deny Deny from all Satisfy All ## Uncomment these rules if you want to have nice URLs using ## $conf['rewrite'] = 1 - not needed for rewrite mode 2 RewriteEngine on # ## Not all installations will require the following line. If you do, ## change "/dokuwiki" to the path to your dokuwiki directory relative File: .htaccess ##RewriteBase /kamapsp RewriteRule ^_media/(.*) lib/exe/fetch.php?media=$1 [QSA,L] RewriteRule ^_detail/(.*) lib/exe/detail.php?media=$1 [QSA,L] RewriteRule ^_export/([^/]+)/(.*) doku.php?do=export_$1&id=$2 [QSA,L] RewriteRule ^$ doku.php [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule (.*) doku.php?id=$1 [QSA,L] RewriteRule ^index.php$ doku.php