Wamp server 2.5 页面重定向错误 [英] Wamp server 2.5 wrong page redirection
问题描述
我用 PHP 5.5 安装了 wamp server 2.5.现在,当我尝试从首页(wamp 主页)访问我的项目页面时,它重定向到错误的 url 并显示 google 找不到此页面.
I installed wamp server 2.5 with PHP 5.5. Now, when i try to access my project pages from the front page(wamp home page), it redirect to a wrong url and shows google cannot find this page.
问题定义是
我使用 http://localhost
我有很多项目.假设我点击 sample_project
There I have many project. Suppose I click on sample_project
然后页面重定向到sample_projects/
而谷歌浏览器显示错误chrome cannot find this page
在我的 wamp PHP 扩展区域中有两个字段是红色标记.它们是 php_enchant
和 php_opcache
There are two fields are swown red marks in my wamp PHP extensions area. They are php_enchant
and php_opcache
我的 wamp 有什么问题?我是不是遗漏了什么?请帮忙
What is the problem with my wamp??am I missing something? Help please
推荐答案
老实说,我认为为每个..单个..项目创建虚拟主机是非常低效的.所以在调查之后我发现了一个关键变量:
Honestly I think its highly inefficient to create Virtual Host for every.. single.. project. So after investigating I found a key variable in:
wamp/www/index.php.
经过快速分析,该变量的明显目的是删除项目链接中的localhost".
After quick analysis, the variable's obvious purpose is to remove the 'localhost' in projects links.
更改这一行:
$suppress_localhost = true;
为此:
$suppress_localhost = false;
这篇关于Wamp server 2.5 页面重定向错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!