<IfModule mod_rewrite.c>
	RewriteEngine On
	RewriteRule ^(.*)/category-([0-9]+)-([0-9]+)\.html\?*(.*)$ $1/category\.php\?cid=$2&page=$3&$4
	RewriteRule ^(.*)/bar-([0-9]+)-([0-9]+)\.html\?*(.*)$ $1/forum\.php\?fid=$2&page=$3&$4
	RewriteRule ^(.*)/topic-([0-9]+)-([0-9]+)\.html\?*(.*)$ $1/topic\.php\?tid=$2&page=$3&$4
	RewriteRule ^(.*)/member-([0-9]+)\.html\?*(.*)$ $1/member\.php\?uid=$2&$3
</IfModule>

<IfModule mod_expires.c>
	ExpiresActive On
	ExpiresDefault A600
	ExpiresByType image/x-icon A2592000
	ExpiresByType application/x-javascript A2592000
	ExpiresByType text/css A604800
	ExpiresByType image/gif A2592000
	ExpiresByType image/png A2592000
	ExpiresByType image/jpeg A2592000
	ExpiresByType text/plain A86400
	ExpiresByType application/x-shockwave-flash A2592000
	ExpiresByType video/x-flv A2592000
	ExpiresByType application/pdf A2592000
	ExpiresByType text/html A600
</IfModule>

<ifmodule mod_deflate.c>
	AddOutputFilter DEFLATE html xml php js css
</ifmodule>

FileETag none