RewriteEngine on # Block anything we don't want them to access RewriteCond %{REQUEST_URI} !^/forums/(index\.php|Themes/(.*)/(.*)\.(css|js)|Themes/(.*)/images/(.*)\.(jpg|png|gif)) RewriteRule ^(.*)$ /forums/index.php [F,L]