Protects the .htacces file from external access
- Only the FlatPress admin and server admin should be able to access the .htacces file
This commit is contained in:
parent
1fd0f4b2bb
commit
0fc7258493
@ -628,11 +628,16 @@ if (class_exists('AdminPanelAction')) {
|
|||||||
|
|
||||||
# Thanks again WP :)
|
# Thanks again WP :)
|
||||||
|
|
||||||
|
AddType application/x-httpd-php .php .htm .html
|
||||||
Options -Indexes
|
Options -Indexes
|
||||||
|
|
||||||
<IfModule mod_rewrite.c>
|
<IfModule mod_rewrite.c>
|
||||||
RewriteEngine On
|
RewriteEngine On
|
||||||
RewriteBase ' . $blogroot . '
|
RewriteBase ' . $blogroot . '
|
||||||
|
|
||||||
|
# Protects the .htacces file from external access, status code 403 "Forbidden" is output
|
||||||
|
RewriteRule ^\.htaccess$ - [F]
|
||||||
|
|
||||||
RewriteCond %{REQUEST_FILENAME} !-f
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
RewriteCond %{REQUEST_FILENAME} !-d
|
RewriteCond %{REQUEST_FILENAME} !-d
|
||||||
RewriteRule . ' . $blogroot . 'index.php [L]
|
RewriteRule . ' . $blogroot . 'index.php [L]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user