# Ensuring that short hand "<?" won't start PHP parsing ...
php_flag short_open_tag off

# Turn off register_globals
php_flag register_globals 0

# Turn off magic_quotes
php_flag magic_quotes_gpc 0

RewriteEngine On
# RewriteBase /
RewriteRule ^archive/(.*)$ pivot/archive_dynamic.php?p=$1&%{QUERY_STRING}
RewriteRule ^category/([^/]*)(/.*)?$ pivot/archive.php?c=$1&%{QUERY_STRING}
RewriteRule ^entry/([0-9]*)(/.*)?$ pivot/entry.php?id=$1&%{QUERY_STRING}
RewriteRule ^tag/(w=[^/]*)/(t=[^/]*)/(.*)$ pivot/tags.php?$1&$2&tag=$3&%{QUERY_STRING}
RewriteRule ^tag/(w=[^/]*|t=[^/]*)/(.*)$ pivot/tags.php?$1&tag=$2&%{QUERY_STRING}
RewriteRule ^tag/(.*)$ pivot/tags.php?tag=$1&%{QUERY_STRING}
RewriteRule ^tags$ pivot/tags.php
RewriteRule ^tags/(.*)$ pivot/tags.php?$1&%{QUERY_STRING}
