Web Development

How to Enable Missing ‘Localhost’ Prefix in WAMP

So you just recently installed the WAMP server on your PC/laptop and ready to start your web development process. You launched the homepage of WAMP and clicked on the project folder in the hope of such a URL “http://localhost/yourproject” but you got an error.

Well, it is due to some settings, as WAMP wants you to use virtual host way to create project URLs. However, you can still enable the old way of showing URL prefixed with ://localhost.

Loading...

All you need to do is follow the following simple steps:

Step 1

First of all, go to WAMP folder and www directory

locate the index file and follow the steps as shown below

index file of wamp

Find $suppress_localhost

suppress localhost
$suppress_localhost, line 33

Change true into false as shown below

$suppress localhost true
Make sure that highlighted value is True

Restart the WAMP server.

Loading...

It should be working now.

Show More

Leave a Reply

Back to top button