first_page the funky knowledge base
personal notes from way, _way_ back and maybe today

Zend Framework Upgrade of SonghaySystem.com: the “legacy” .htaccess file

Disallow file browsing:

#Options -Indexes

Custom errors:

#ErrorDocument 401 /ex.php?status=401 #ErrorDocument 403 /ex.php?status=403 #ErrorDocument 404 /ex.php?status=404 #ErrorDocument 500 /ex.php?status=500

RewriteEngine on

Production server rewrites:

#RewriteCond %{SERVER_NAME} songhaysystem.com #RewriteRule ^public_tools/js/rootData\\.js$ /js/routines/DataValidation\\.js [redirect,last] #RewriteCond %{SERVER_NAME} songhaysystem.com #RewriteRule ^public_tools/js/rootSniffer\\.js$ /js/routines/Sniffer.js [redirect,last] #RewriteCond %{SERVER_NAME} songhaysystem.com #RewriteRule ^public_tools/rss/news_feeds\\.opml /samples/OPML/sage\\.opml [redirect,last] #RewriteCond %{SERVER_NAME} songhaysystem.com #RewriteRule ^public_tools/(CSS|CrystDDF|DOM) /samples/$1 [redirect,last]

Development server rewrites (for testing):

#RewriteCond %{SERVER_NAME} songhay7lxv #RewriteRule ^public_tools/js/rootData\\.js$ /dev_SonghaySystem/js/routines/DataValidation\\.js [redirect,last] #RewriteCond %{SERVER_NAME} songhay7lxv #RewriteRule ^public_tools/js/rootSniffer\\.js$ /dev_SonghaySystem/js/routines/Sniffer.js [redirect,last] #RewriteCond %{SERVER_NAME} songhay7lxv #RewriteRule ^public_tools/rss/news_feeds\\.opml /dev_SonghaySystem/samples/OPML/sage\\.opml [redirect,last] #RewriteCond %{SERVER_NAME} songhay7lxv #RewriteRule ^public_tools/(CSS|CrystDDF|DOM) /dev_SonghaySystem/samples/$1 [redirect,last]

mod date: 2008-03-12T21:04:00.000Z