Options -MultiViews -Indexes +FollowSymlinks
RewriteEngine On
# RewriteBase /websitepublisher/
# Turn off mod_security filtering.
SecFilterEngine Off
# The below probably isn't needed, but better safe than sorry.
SecFilterScanPOST Off
# PHP is in CGI Mode, so we need a different mod_rewrite
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !categories\.php
RewriteRule ^categories(.*) categories.php?$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !articles\.php
RewriteRule ^articles(.*)$ articles.php?$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !pages\.php
RewriteRule ^pages(.*)$ pages.php?$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !blogs\.php
RewriteRule ^blogs(.*)$ blogs.php?$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !search.php
RewriteRule ^search(.*)$ search\.php?$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !authors.php
RewriteRule ^authors(.*)$ authors\.php?a=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !articlerss.php
RewriteRule ^articlerss(.*)$ articlerss\.php?$1 [L]
RewriteCond %{REQUEST_URI} !news.php
RewriteCond %{REQUEST_URI} !newsrss.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^news(.*)$ news.php?$1 [L]
# Using PHP 5 in module mode
RewriteCond %{REQUEST_URI} categories.*
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^categories(.*)$ categories.php?$1 [T=application/x-httpd-php,L]
RewriteCond %{REQUEST_URI} articles.*
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^articles(.*)$ articles.php?$1 [T=application/x-httpd-php,L]
RewriteCond %{REQUEST_URI} pages.*
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^pages(.*)$ pages.php?$1 [T=application/x-httpd-php,L]
RewriteCond %{REQUEST_URI} blogs.*
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^blogs(.*)$ blogs.php?$1 [T=application/x-httpd-php,L]
RewriteCond %{REQUEST_URI} search.*
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^search(.*)$ search.php?$1 [T=application/x-httpd-php,L]
RewriteCond %{REQUEST_URI} authors.*
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^authors(.*)$ authors.php?a=$1 [T=application/x-httpd-php,L]
RewriteCond %{REQUEST_URI} articlerss.*
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^articlerss(.*)$ articlerss.php?$1 [T=application/x-httpd-php,L]
RewriteCond %{REQUEST_URI} news.*
RewriteCond %{REQUEST_URI} !newsrss
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^news(.*)$ news.php?$1 [T=application/x-httpd-php,L]
# PHP 4 in module mode
RewriteCond %{REQUEST_URI} categories.*
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^categories(.*)$ categories.php?$1 [T=application/x-httpd-php,L]
RewriteCond %{REQUEST_URI} articles.*
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^articles(.*)$ articles.php?$1 [T=application/x-httpd-php,L]
RewriteCond %{REQUEST_URI} pages.*
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^pages(.*)$ pages.php?$1 [T=application/x-httpd-php,L]
RewriteCond %{REQUEST_URI} blogs.*
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^blogs(.*)$ blogs.php?$1 [T=application/x-httpd-php,L]
RewriteCond %{REQUEST_URI} search.*
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^search(.*)$ search.php?$1 [T=application/x-httpd-php,L]
RewriteCond %{REQUEST_URI} authors.*
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^authors(.*)$ authors.php?a=$1 [T=application/x-httpd-php,L]
RewriteCond %{REQUEST_URI} articlerss.*
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^articlerss(.*)$ articlerss.php?$1 [T=application/x-httpd-php,L]
RewriteCond %{REQUEST_URI} news.*
RewriteCond %{REQUEST_URI} !newsrss
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^news(.*)$ news.php?$1 [T=application/x-httpd-php,L]