Options all
# if you run tDiary with symbolic link, use settings below.
#Options +FollowSymLinks
# if making anchor style as 'YYYYMMDD.html', use settings below,
# then change 'your_URL_of_index.rb' and use html_anchor.rb plugin.
# But this method makes error into error_log of apache. It is better
# method to use mod_rewrite.
#
<Files ~ "^([0-9]{4}|[0-9]{6}|[0-9]{8}).html$">
ErrorDocument 404 index.rb
</Files>
AddHandler cgi-script .rb
DirectoryIndex index.rb
RewriteEngine off
RewriteRule ^([0-9]+)\.html$ /var/www/html/tdiary/index.rb?date=$1
<Files "*.rhtml*">
deny from all
</Files>
<Files "tdiary.*">
deny from all
</Files>
<Files update.rb>
AuthName tDiary
AuthType Basic
AuthUserFile <<パスワードファイル>>
Require user <<ユーザー名>>
</Files>
<Files plandoseeedit.rb>
AuthName tDiary
AuthType Basic
AuthUserFile <<パスワードファイル>>
Require user <<ユーザー名>>
</Files>
Keyword(s):
References: