30 lines
No EOL
612 B
ApacheConf
Executable file
30 lines
No EOL
612 B
ApacheConf
Executable file
Options All -Indexes
|
|
|
|
# Protect wp-config.php
|
|
<FilesMatch ^wp-config.php$>
|
|
deny from all
|
|
</FilesMatch>
|
|
# Protect .htaccess
|
|
<Files .htaccess>
|
|
order allow,deny
|
|
deny from all
|
|
</Files>
|
|
# protection des fichiers sys .git
|
|
RedirectMatch 404 /\.git
|
|
#Bloquer l'indexation des fichiers PDF
|
|
<files ~ "\.(doc|docx|pdf)$">
|
|
Header set X-Robots-Tag "noindex, nofollow"
|
|
</Files>
|
|
|
|
|
|
# BEGIN WordPress
|
|
<IfModule mod_rewrite.c>
|
|
RewriteEngine On
|
|
RewriteBase /
|
|
RewriteRule ^index\.php$ - [L]
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
RewriteRule . /index.php [L]
|
|
</IfModule>
|
|
|
|
# END WordPress |