Forum Moderators: phranque
AddOutputFilterByType DEFLATE text/html text/css text/javascript
DirectoryIndex content.php?_page=index
ExpiresActive On
ExpiresByType image/jpg A604800
ExpiresByType image/jpeg A604800
ExpiresByType image/gif A604800
ExpiresByType text/javascript A2592000
ExpiresByType text/css A2592000
#
RewriteEngine On
# force www.site
RewriteCond %{HTTP_HOST} !^www\.example\.com$
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
#content pages
RewriteRule ^(content|index|news|track|championships|events|about|history|buysell|private|accommodation|sponsors|links).html$ /content.php?_page=$1 [L]
#RewriteRule ^(contact).html$ /contact.php?_page=$1 [L]
#admin
RewriteRule ^(content|index|news|track|championships|events|about|history|buysell|private|accommodation|sponsors|links|contact)admin.html$ /contentadmin.php?_page=$1 [L]
#logout
#RewriteRule ^logout$ /artistentry.php?logout=1 [L]
RewriteCond %{HTTP_REFERER} .
RewriteCond %{HTTP_REFERER} !^https?://(www\.)?example\.com [NC]
RewriteRule \.(gif|jpe?g|png)$ - [F] [edited by: jdMorgan at 3:05 am (utc) on Jun 18, 2010]
[edit reason] example.com [/edit]