Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wamp server 2.5 wrong page redirection

Tags:

redirect

url

wamp

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.

The problem definition is

I enter to wamp using http://localhost

There I have many project. Suppose I click on sample_project

Then the page redirects to sample_projects/

And Google Chrome displays the error chrome cannot find this webpage

There are two fields are swown red marks in my wamp PHP extensions area. They are php_enchant and php_opcache

What is the problem with my wamp??am I missing something? Help please

like image 615
Arun Avatar asked May 28 '14 10:05

Arun


People also ask

How to change the root directory of the currently installed WampServer?

How can i change the root directory of the currently installed wampserver to some other directory. For wamp 2.5 on Windows, use a text editor, e.g. notepad++ to edit c:\wamp\bin\apache\apache2.4.9\conf\httpd.conf Change DocumentRoot "c:/wamp/www" to DocumentRoot "c:/my/new/path" (Note slash direction).

How to install Wamp server on Apache server?

Now Click on Apache > Service and Install Service. Click on Allow Access button. Restart WAMP Server. WAMP server icon will turn green after restarting. That means everything working fine.

How do I change the default location of a WAMP file?

For wamp 2.5 on Windows, use a text editor, e.g. notepad++ to edit c:\wamp\bin\apache\apache2.4.9\conf\httpd.conf Change DocumentRoot "c:/wamp/www" to DocumentRoot "c:/my/new/path" (Note slash direction). This will change the location where files are served from (~Line 230).

How to fix msvcr110 DLL is missing error in WAMP?

To fix msvcr110.dll is missing error you just need to install two files. After installing these files when you will start WAMP server, WAMP icon in system tray should turn green. If it remains orange it means there is something wrong. You can try to reinstall WAMP server after installing these files.


1 Answers

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.

After quick analysis, the variable's obvious purpose is to remove the 'localhost' in projects links.

Change this line:

$suppress_localhost = true;

To this:

$suppress_localhost = false;
like image 119
Robotometry Avatar answered Sep 24 '22 12:09

Robotometry