|
From: Jon O. <jon...@us...> - 2006-06-27 21:36:10
|
Update of /cvsroot/mxbb/core In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv12123 Added Files: .htaccess Log Message: Cache related... security: added main htaccess file --- NEW FILE: .htaccess --- DirectoryIndex index.php index.html index.htm # # Limit # <Limit GET HEAD POST> # # Allow access to everyone, but... # order allow,deny allow from all # # Banned: Who, Reason, Reference Link (topic), etc. ???... # # List # deny from 212.138.47.0/24 # deny from 212.138.64.0/22 # ... </Limit> # deny most common except .php <FilesMatch "\.(inc|tpl|h|ihtml|sql|ini|conf|class|bin|spd|theme|module|exe)$"> deny from all </FilesMatch> #Disable .htaccess viewing from browser <Files ~ "^\.ht"> Order allow,deny Deny from all Satisfy All </Files> <Files ~ "\config.php$"> deny from all </Files> <IfModule mod_rewrite.c> RewriteEngine on # # Mod_rewrite rules require mod_rewrite is enabled for mxBB (config setting) # Uncomment below, and consult the mxBB mod_rewrite module documentation # # # Site Specific # #RewriteRule ^support/catlink([0-9]*)(.*)$ index.php?page=53&cat_link=$1 [L] #RewriteRule ^support(.*)$ index.php?page=53 [L] # # General # #RewriteCond %{REQUEST_URI} ^(.*)/catlink([0-9]*)(.*)$ #RewriteRule ^page([0-9]*)/catlink([0-9]*)(.*)$ index.php?page=$1&cat_link=$2 [L] #RewriteCond %{REQUEST_URI} ^(.*)/sub([0-9]*)(.*)$ #RewriteRule ^page([0-9]*)/sub([0-9]*)(.*)$ index.php?page=$1&dynamic_block=$2 [L] #RewriteCond %{REQUEST_URI} ^/page([0-9]*)(.*)$ #RewriteRule ^page([0-9]*)(.*)$ index.php?page=$1$2 [L] #RewriteCond %{REQUEST_URI} ^/block([0-9]*)(.*)$ #RewriteRule ^block([0-9]*)(.*)$ index.php?block=$1$2 [L] </IfModule> # # Error redirects - require the mxBB errordocs module installed # Uncomment below, and consult the mxBB errordocs module documentation # #ErrorDocument 400 /index.php?page=x&errno=400&errlog=yes #ErrorDocument 401 /index.php?page=x&errno=400&errlog=yes #ErrorDocument 402 /index.php?page=x&errno=400&errlog=yes #ErrorDocument 403 /index.php?page=x&errno=400&errlog=yes #ErrorDocument 404 /index.php?page=x&errno=400&errlog=yes #ErrorDocument 500 /index.php?page=x&errno=400&errlog=yes #ErrorDocument 501 /index.php?page=x&errno=400&errlog=yes #ErrorDocument 502 /index.php?page=x&errno=400&errlog=yes #ErrorDocument 503 /index.php?page=x&errno=400&errlog=yes #ErrorDocument 504 /index.php?page=x&errno=400&errlog=yes |