wordpress 设置默认的固定连接后不能访问

未分类

环境:

1
2
3
4
5
wordpress 版本: 4.1
apache 版本
root@test:/etc/apache2# apache2 -v
Server version: Apache/2.4.7 (Ubuntu)
Server built:   Jul 22 2014 14:36:39


NO.1  开启mod-rewrite

1
2
3
4
5
6
root@test:/etc/apache2# a2enmod rewrite
Enabling module rewrite.
To activate the new configuration, you need to run:
  service apache2 restart
root@test:/etc/apache2# service apache2 restart
 * Restarting web server apache2


NO.2   查看mod-rewrite 

1
2
root@test:/etc/apache2# ls -al /etc/apache2/mods-enabled/rewrite.load
lrwxrwxrwx 1 root root 30 Dec 20 13:00 /etc/apache2/mods-enabled/rewrite.load -> ../mods-available/rewrite.load

NO.3   修改目录

1
2
3
4
5
6
root@test:/etc/apache2# vim apache2.conf
<Directory /var/www/>
        Options FollowSymLinks
        AllowOverride ALL
        Require all granted
</Directory>

 

 

fuck\fuck\(\)\[\]\\\/\fuck”\\$1″fuck\/script>’)} fuck

发表回复