It seems like you are using an ad blocker. To enhance your experience and support our website, please consider:

  1. Signing in to disable ads on our site.
  2. Sign up if you don't have an account yet.
  3. Or, disable your ad blocker by doing this:
    • Click on the ad blocker icon in your browser's toolbar.
    • Select "Pause on this site" or a similar option for lancecourse.com.

Bad page redirection or Wrong page redirection with WampServer 2.5

By zooboole

Hi everyone.

Today I want to show you how to manage the problem of bad page redirection or Wrong page redirection with WampServer 2.5.

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:

  1. Adjust it. You can simply enter http://localhost/ in the address bar followed by your project name MyProject. So you type manuallyhttp://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.

  2. 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:

    • Go to C:\\www

    Path

    • Open the index.php file with your favorite text editor like notepad, sublime text or netbeans, etc.

    Folder

    • 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.

Last updated 2024-01-11 UTC