Free Software Server Environment : HtAccess

HomePage :: Categories :: PageIndex :: RecentChanges


Search this site: FSSE.INFO is produced by "osde8info" :

apache .htaccess

The settings available in .htaccess are the same as the globally defined ones in httpd.conf but in .htaccess apply to the local subdirectory and below.

block referers
### STOP REFERRER SPAM
SetEnvIfNoCase Referer ".*( <nastyword1>[ | ...] ).*" BadReferrer
order deny,allow
deny from env=BadReferrer


throw away MS directories
### STOP VIRUSES SCANNING
redirect /C http://www.stoptheviruscold.invalid
redirect /D http://www.stoptheviruscold.invalid
redirect /MSADC http://www.stoptheviruscold.invalid
redirect /msadc http://stoptheviruscold.invalid
redirect /scripts http://www.stoptheviruscold.invalid
redirect /_mem_bin http://stoptheviruscold.invalid
RedirectMatch (.*)\.cmd$ http://stoptheviruscold.invalid
RedirectMatch (.*)\.exe$ http://stoptheviruscold.invalid


rewrite friendly urls
<IfModule mod_rewrite.c>
 RewriteEngine on
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteRule ^(.*)$ wikka.php?wakka=$1 [L]
</IfModule>


rewrite friendly urls with multiple parameters
RewriteRule ^tags/(.+)/page/([0-9]+)$ /bbpress/tags.php?tag=$1&page=$2 [L,QSA]


multiviews
Options +MultiViews


Enable SSI & XSSI Server Side Includes
Options Includes
AddOutputFilter INCLUDES .html

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.0186 seconds