Htaccess File


GET, POST, static
# Block access to files other than antilaconia.cgi/.css/.js
<Files ~ "(.htaccess|.git||antilaconia.(rb|db)|COPYING.txt|README.mdwn)">
    <Limit GET POST>
  order deny,allow
  deny from all

# Handle antilaconia.cgi as a CGI script.
Options +ExecCGI -Indexes
<Files "antilaconia.cgi">
    SetHandler cgi-script

# URL rewriting
RewriteEngine On
# If stick this to,
#      set this to                       /whatever/ublog
RewriteBase /whatever/ublog

# Basically do nothing for static files.
RewriteRule ^s/(.*)$ s/$1 [L]
# Handle index.
RewriteRule ^$ antilaconia.cgi/ [L]
# Handle everything else
RewriteRule ^(login|new|post|tweet|delete|logout)(/.*)?$ antilaconia.cgi/$1$2 [L]
Exit mobile version