我上传了一个名为phpmotion的脚本给我的vps,当你到几乎所有的页面,你都会看到这个错误
Not Found The requested URL /xyz was not found on this server. Apache/2.2.3 (CentOS) Server at showpill.com Port 80
他们提供的.htaccess在那里,一切正常上传和安装。 支持团队说,mod_rewrite没有启用,但我检查,它是启用。
他们告诉我在他们的论坛上注册,询问一下,我试过了,但是它说:注册目前是禁用的。 所以我在这里问这是什么问题?
编辑
@George Tasioulis
LoadModule rewrite_module modules/mod_rewrite.so
没有被注释掉,我改变了AllowOverride为All创build.htaccess文件,如你所说,仍然没有工作
编辑2
httpd -l的输出
Compiled in modules: core.c prefork.c http_core.c mod_so.c
apachectl configtest的输出
Syntax OK
你是如何检查mod_rewrite是肯定启用的?
我会说你试试这个:备份当前的.htaccess文件,并创build一个新的与以下内容:
Options +FollowSymLinks Redirect /google.html http://www.google.com
现在访问http://www.showpill.com/google.html ,看看它是否redirect到google.com如果是,那么mod_rewrite的作品,如果没有检查你的httpd.conf文件, AllowOverride设置为All和重启Apache。
创build一个.htaccess文件,如你所说
安装中是否包含.htaccess文件? 你有没有上传到服务器? 某些FTP客户端默认忽略点文件。