Posted By

chrisaiv on 09/13/14


Tagged

wordpress htaccess


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

tryan326


Wordpress: .htaccess performance tricks


 / Published in: Apache
 

These are performance tricks to improve your Wordpress application.

  1. # ########################################
  2. # Custom HTACCESS
  3. # DESCRIPTION: Tips and tricks to beef up your wordpress quality
  4. # ########################################
  5.  
  6. # Prevent people from browsing your WordPress folder structure
  7. Options All -Indexes
  8.  
  9. # Prevent people from browsing your WordPress folder structure
  10. <IfModule mod_rewrite.c>
  11. RewriteEngine on
  12. RewriteCond %{HTTP_USER_AGENT} !^.*(FeedBurner|FeedValidator) [NC]
  13. RewriteRule ^feed/?.*$ http://feeds.labnol.org/labnol [L,NC,R=301]
  14. </IfModule>
  15.  
  16. # Hide your XML Sitemaps from Search Engines
  17. <IfModule mod_rewrite.c>
  18. <Files sitemap.xml>
  19. Header set X-Robots-Tag "noindex"
  20. </Files>
  21. </IfModule>

Report this snippet  

You need to login to post a comment.