Quote
In your .htaccess commented:
# Options-Indexes
- by Kvido
Quote
# Force utf-8 charset
AddDefaultCharset utf-8
# Security
ServerSignature Off
# Secure htaccess file
<Files .htaccess>
order allow,deny
deny from all
</Files>
# Protect config.php
<Files config.php>
order allow,deny
deny from all
</Files>
# Block Nasty Bots
<IfModule mod_setenvifno.c>
SetEnvIfNoCase ^User-Agent$ .*(craftbot|download|extract|stripper|sucker|ninja|clshttp|webspider|leacher|collector|grabber|webpictures) HTTP_SAFE_BADBOT
SetEnvIfNoCase ^User-Agent$ .*(libwww-perl|aesop_com_spiderman) HTTP_SAFE_BADBOT
Deny from env=HTTP_SAFE_BADBOT
</IfModule>
# Disable directory listing
Options -Indexes
Options +SymLinksIfOwnerMatch
<IfModule mod_rewrite.c>
# Let PHP know mod_rewrite is enabled
<IfModule mod_env.c>
SetEnv MOD_REWRITE On
</IfModule>
RewriteEngine On
RewriteBase /fusion9/
# Fix Apache internal dummy connections from breaking [(site_url)] cache
RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC]
RewriteRule .* - [F,L]
# Exclude /assets and /manager directories and images from rewrite rules
RewriteRule ^(administration|themes)/*$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_URI} !^/(administration|config|index.php)
RewriteRule ^(.*?)$ index.php [L]
</IfModule>
# Disable directory listing
# Options-Indexes
#Options +SymLinksIfOwnerMatch
<IfModule mod_rewrite.c>
# Let PHP know mod_rewrite is enabled
<IfModule mod_env.c>
SetEnv MOD_REWRITE On
</IfModule>
RewriteEngine On
RewriteBase /
# Fix Apache internal dummy connections from breaking [(site_url)] cache
RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC]
RewriteRule .* - [F,L]
# Exclude /assets and /manager directories and images from rewrite rules
RewriteRule ^(administration|themes)/*$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_URI} !^/(administration|config|index.php)
RewriteRule ^(.*?)$ index.php [L]
</IfModule>
Category Forum
SEO & SEF - 9Labels
None yet
Statistics
4 participants
Notifications
You are not receiving notifications from this thread.
Related Questions