Skip to content

Categories:

WordPress .htaccess 实现网页静态化

wordpress 页面静态化的 htaccess 实现。

将下面代码保存成.htaccess 文件,然后上传到 wordpress 根目录:

# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

WordPress 静态化插件 cos-html-cache 官方下载地址:

http://wordpress.org/extend/plugins/cos-html-cache/download/

Posted in 收藏.

Tagged with , , .


One Response

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. 叉叉兵 says

    这不是伪静态的代码么。。。

You must be logged in to post a comment.