######################## # Reverse proxy stuff ProxyRequests off ProxyPreserveHost On ProxyPass /kb/ http://127.0.0.1/kb/ CacheEnable disk /kb CacheRoot "/var/cache/mod_proxy" CacheDefaultExpire 900 CacheIgnoreNoLastMod On CacheIgnoreCacheControl On CacheStorePrivate On CacheMaxExpire 900 Header set Cache-Control "max-age=900" ExpiresActive On #ExpiresByType text/html "access plus 5 minutes" ExpiresByType image/gif "access plus 1 day" ExpiresByType image/jpeg "access plus 1 day" ExpiresByType image/png "access plus 1 day" ExpiresByType text/css "access plus 1 day" ExpiresByType application/x-javascript "access plus 1 day" #### RewriteEngine On RewriteRule ^(/kb/general)/(search)/$ $1/index.php?View=$2& [QSA] RewriteRule ^(/kb/general)/(rssfeed|glossary)/$ $1/index.php?View=$2 RewriteRule ^(/kb/general)/([0-9][0-9]*)/$ $1/index.php?CategoryID=$2 RewriteRule ^(/kb/general)/(entry)/([0-9][0-9]*)/$ $1/index.php?View=$2&EntryID=$3 RewriteRule ^(/kb/general)/(print)/([0-9][0-9]*)/$ $1/index.php?View=$2&EntryID=$3