我正在尝试执行一些url重写,并且在查看phpinfo文件之后,看不到任何有关此内容的信息.我的主机是FastHosts.
I'm attempting to perform some url rewriting, and after looking at the phpinfo file, I can't see any mention of this.. My host is FastHosts.
我应该在phpinfo()中寻找其他内容还是应该假定mod_rewrite仅仅是disabled?
Should I be looking for something else in the phpinfo() or should I assume that mod_rewrite is simply disabled?
推荐答案mod_rewrite是apache模块,而不是PHP模块.在phpinfo()中不可见.在某些子文件夹中创建一个.htaccess,并确保它包含:
mod_rewrite is an apache module, not a PHP module. It isn't visible in phpinfo(). Create an .htaccess in some subfolder and make sure it contains:
RewriteEngine on将浏览器指向该文件夹.如果出现服务器错误,则未安装.否则.
Point your browser to the folder. If you get a Server Error, it isn't installed. Otherwise it is.
更多推荐
phpinfo()mod
发布评论