phpinfo()mod

编程入门 行业动态 更新时间:2024-10-08 18:31:40
本文介绍了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

本文发布于:2023-11-01 00:54:28,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1547776.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:phpinfo   mod

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!