#DirectoryIndex status.php
Options +FollowSymlinks
Order Deny,Allow
Deny from all
RewriteEngine on
RewriteBase /edgar
RewriteRule ^all_(.+)\.html$ status.php?iconset=$1&type=allhtml [L,QSA]
RewriteRule ^all.html$ status.php?type=allhtml [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)/(.+)/(.+)\.gif$ status.php?jid=$2@$1&iconset=$3&type=image [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)/(.+)\.gif$ status.php?jid=$1@%{HTTP_HOST}&iconset=$2&type=image [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)/(.+)/(.+)\.([1-9])\.html$ status.php?jid=$2@$1&iconset=$3&type=html$4 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)/(.+)\.([1-9])\.html$ status.php?jid=$1@%{HTTP_HOST}&iconset=$2&type=html$3 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)/(.+)/.+\.txt$ status.php?jid=$2@$1&type=text [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)/.+\.txt$ status.php?jid=$1@%{HTTP_HOST}&type=text [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)/(.+)/(.+)\.(.+)$ status.php?jid=$2@$1&iconset=$3&type=$4 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)/(.+)\.(.+)$ status.php?jid=$1@%{HTTP_HOST}&iconset=$2&type=$3 [L,QSA]