Bad page redirection or Wrong page redirection with WampServer 2.5
Today I want to show you how to manage the problem of bad page redirection or Wrong page redirection with WampServer 2.5 and higher.
Indeed, from version 2.5 a directly click on projects MyProject does not redirect us to
http://localhost/MyProject but rather on
http://MyProject which provode immediately a 404 error.
To solve the problem you have two possibilities:
Adjust it. You can simply enter
http://localhost/ in the address bar followed by your project name MyProject. So you type manually
http://localhost/MyProject in the address bar of your browser. What causes a very big problem. If you are an addict like me, you should feel like an endless mechanical work.
So, to make it perfect following solution can manage it for us.
Now if you would like to change and maintain this rule, and make wampserver always to prefix the
http://localhost to the name of your project, Follow these steps:
Open the index.php file with your favorite text editor like
notepad, sublime text or netbeans, etc.
Search and Find the variable $suppress_localhost
$suppress_localhost = false;
By default the variable is true; You must change it into false.
There is No need to restart WampServer
And you are good to go.
Thanks for following.