phpinfo()mod_rewrite [英] phpinfo() mod_rewrite

查看:195
本文介绍了phpinfo()mod_rewrite的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试执行一些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_rewrite的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆