分类目录归档:Apache

使用.htaccess(Ubuntu开启rewrite模块)

配置好Linode VPS,装好WordPress,设置固定连接,不能使用。 于是google,找到解决方案。原来是Apache的rewrite目录权限问题。 那么,让我们来看看如何配置rewrite: 1.打开Apache的配置文件——http.conf vi /etc/apache2/extra/httpd-vhost.conf LoadModule rewrite_module modules/mod_rewrite.so 2.执行a2enmod rewrite,显示ok则正确。 3.vi /etc/apache2/sites-enabled/000-default,找到网站节点的那一行 将其中的:AllowOverride None,修改为:AllowOverride All。 4.重启/etc/init.d/apache2 restart  

发表在 Apache | 标签为 , | 留下评论