Return to Snippet

Revision: 50441
at August 22, 2011 04:42 by silentpro


Initial Code
# 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

Initial URL

                                

Initial Description

                                

Initial Title
Wordpress - htaccess

Initial Tags
textmate, wordpress, htaccess, apache

Initial Language
Other