/ Published in: Other
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
# Original from http://zemalf.com/1470/wordpress-htaccess-the-definite-guide/ # BEGIN htaccess # Protect the htaccess file <Files .htaccess> Order Allow,Deny Deny from all </Files> # Protect the htaccess file <Files wp-config.php> Order Allow,Deny Deny from all </Files> # Disable directory browsing Options All -Indexes # Enable the following of symlinks Options +FollowSymLinks <IfModule mod_headers.c> # No ETags, No Pragma Header unset Pragma Header unset ETag # Make sure proxies deliver correct content Header append Vary User-Agent env=!dont-vary # Ensure proxies deliver compressed content correctly Header append Vary Accept-Encoding </IfModule> # BEGIN WordPress # IF WP ALREADY CREATED DO NOT REPLACE <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 # END htaccess