Wordpress:.htaccess性能技巧

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Wordpress:.htaccess性能技巧相关的知识,希望对你有一定的参考价值。

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>

以上是关于Wordpress:.htaccess性能技巧的主要内容,如果未能解决你的问题,请参考以下文章

WordPress-.htaccess-保护配置文件

WordPress-.htaccess-块注入攻击

apache_conf Wordpress .htaccess

apache_conf wordpress htaccess

apache_conf Wordpress htaccess

apache_conf Wordpress .htaccess