.htaccess
34 lines
| 924 B
| text/x-apacheconf
|
ApacheConfLexer
| r2 | DirectoryIndex index.php | |||
| Options -MultiViews | ||||
| # Redirects for main page | ||||
| <IfModule mod_rewrite.c> | ||||
| RewriteEngine On | ||||
| # Base URL for site | ||||
| # This MUST be changed when moving to the production servers | ||||
| RewriteBase / | ||||
| # Pretty URLs for dynamic pages | ||||
| RewriteRule ^strip/([0-9]+)/?$ index.php?strip_id=$1 [L] | ||||
| RewriteRule ^transcript/([0-9]+)/?$ index.php?transcript_id=$1 [L] | ||||
| RewriteRule ^rant/([0-9]+)/?$ index.php?rant_id=$1 [L] | ||||
| RewriteRule ^archive(/by_(.+))?/?$ archive.php?list_by=$2 [L] | ||||
| RewriteRule ^search/?$ search.php [L] | ||||
| RewriteRule ^nameplates - [L] | ||||
| RewriteRule ^strips - [L] | ||||
| RewriteCond %{REQUEST_FILENAME} !-F | ||||
| RewriteCond %{REQUEST_FILENAME} !-d | ||||
| RewriteRule ^(.+)/? static.php?name=$1 [L,NS] | ||||
| </IfModule> | ||||
| <FilesMatch "^(header|footer|LocalSettings)\.php$"> | ||||
| Order Deny,Allow | ||||
| Deny from All | ||||
| </FilesMatch> | ||||
| <FilesMatch "\.(css|js)$"> | ||||
| ExpiresActive on | ||||
| ExpiresDefault "modification plus 5 years" | ||||
| </FilesMatch> | ||||
