Wordpress: .htaccess performance tricks


/ Published in: Apache
Save to your folder(s)

These are performance tricks to improve your Wordpress application.


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.