发布于 2014-12-21 03:32:16 | 188 次阅读 | 评论: 1 | 来源: PHPERZ
WordPress开源博客平台
WordPress是一种使用PHP语言开发的博客平台,用户可以在支持PHP和MySQL数据库的服务器上架设属于自己的网站。也可以把 WordPress当作一个内容管理系统(CMS)来使用。
本文为大家讲解的是wordpress 设置默认的固定连接后不能访问(伪静态问题),感兴趣的同学参考下。
wordpress 固定连接设置成: 数字型 http://www.test.net/archives/123
环境:
wordpress 版本: 4.1apache 版本root@test:/etc/apache2# apache2 -vServer version: Apache/2.4.7 (Ubuntu)Server built: Jul 22 2014 14:36:39解决方法root@test:/etc/apache2# a2enmod rewriteEnabling module rewrite.To activate the new configuration, you need to run:service apache2 restartroot@test:/etc/apache2# service apache2 restart* Restarting web server apache2root@test:/etc/apache2# ls -al /etc/apache2/mods-enabled/rewrite.loadlrwxrwxrwx 1 root root 30 Dec 20 13:00 /etc/apache2/mods-enabled/rewrite.load -> ../mods-available/rewrite.loadroot@test:/etc/apache2# vim apache2.conf<Directory /var/www/>Options FollowSymLinksAllowOverride ALLRequire all granted</Directory>