Wordpress-htaccess访问

Posted

tags:

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

  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

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

纯代码压缩WordPress前端Html

如何搭建本地WordPress

WordPress搭建

在WordPress安装外部运行循环

lambda 函数 C++ 11

Wordpress 翻译页面选项