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
@ -627,12 +627,17 @@ if (class_exists('AdminPanelAction')) {
|
||||
$txt = '
|
||||
|
||||
# Thanks again WP :)
|
||||
|
||||
|
||||
AddType application/x-httpd-php .php .htm .html
|
||||
Options -Indexes
|
||||
|
||||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine On
|
||||
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} !-d
|
||||
RewriteRule . ' . $blogroot . 'index.php [L]
|
||||
@ -672,4 +677,4 @@ if (class_exists('AdminPanelAction')) {
|
||||
admin_addpanelaction('plugin', 'prettyurls', true);
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user