RewriteEngine On RewriteCond %{HTTP_HOST} ^example\.com$ [NC] RewriteRule (.*) http://www.example.com/$1 [R=301,L] RewriteRule ^((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L] RewriteRule ^tags/ http://www.serviceacademyforums.com/tags.php <Files .htaccess> order allow,deny deny from all </Files>