Posted By

silentpro on 08/22/11


Tagged

textmate wordpress htaccess apache config guide Ultimate


Versions (?)

Wordpress - htaccess


 / Published in: Other
 

  1. # Original from http://zemalf.com/1470/wordpress-htaccess-the-definite-guide/
  2. # BEGIN htaccess
  3. # Protect the htaccess file
  4. <Files .htaccess>
  5. Order Allow,Deny
  6. Deny from all
  7. </Files>
  8.  
  9. # Protect the htaccess file
  10. <Files wp-config.php>
  11. Order Allow,Deny
  12. Deny from all
  13. </Files>
  14.  
  15. # Disable directory browsing
  16. Options All -Indexes
  17.  
  18. # Enable the following of symlinks
  19. Options +FollowSymLinks
  20.  
  21. <IfModule mod_headers.c>
  22. # No ETags, No Pragma
  23. Header unset Pragma
  24. Header unset ETag
  25. # Make sure proxies deliver correct content
  26. Header append Vary User-Agent env=!dont-vary
  27. # Ensure proxies deliver compressed content correctly
  28. Header append Vary Accept-Encoding
  29. </IfModule>
  30.  
  31. # BEGIN WordPress
  32. # IF WP ALREADY CREATED DO NOT REPLACE
  33. <IfModule mod_rewrite.c>
  34. RewriteEngine On
  35. RewriteBase /
  36. RewriteRule ^index.php$ - [L]
  37. RewriteCond %{REQUEST_FILENAME} !-f
  38. RewriteCond %{REQUEST_FILENAME} !-d
  39. RewriteRule . /index.php [L]
  40. </IfModule>
  41. # END WordPress
  42. # END htaccess

Report this snippet  

You need to login to post a comment.