今天把博客的程序更换为wordpress了

LAMP14年前 (2010)发布 liyugang
127 0

以前的程序是ASP+ACC的,数据库一大,就影响速度,我就这几百篇的博文,有时后台编辑的时候显示好慢,wordpress这个系统好多年前我就接触过,不过因为当时PHP还没这么流行和普及,PHP的环境也少。
现在自己学习了一点PHP,自己也有环境,还是感受一下PHP+MYSQL吧
转换过程很顺利,不过在上传到服务器后,因为伪静态的问题,博文中的图片不显示,找了半天原因没找到
最后把后台的伪静态删除后,后台就进不去了,恍然大悟。。

[ISAPI_Rewrite]
# Defend your computer from some worm attacks
RewriteRule ^/httpd(?:\.ini|\.parse\.errors).* [F,I,O]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
# Rules to ensure that normal content gets through
RewriteRule /software-files/(.*) /software-files/$1 [L]
RewriteRule /images/(.*) /images/$1 [L]
RewriteRule /upload/(.*) /upload/$1 [L]增加了这一条后就OK了
RewriteRule /sitemap.xml /sitemap.xml [L]
RewriteRule /favicon.ico /favicon.ico [L]
# For file-based wordpress content (i.e. theme), admin, etc.
RewriteRule /wp-(.*) /wp-$1 [L]
# For normal wordpress content, via index.php
RewriteRule ^/$ /index.php
RewriteRule ^/(.*) /index\.php/$1
#RewriteRule ^/tag/(.*) /index\.php\?tag=$1 [L]
#RewriteRule ^/cat/(.*) /index\.php\?category_name=$1 [L]

© 版权声明

相关文章

暂无评论

暂无评论...