user1154641
user1154641

Reputation: 5

URL generated in Wamp is missing the local host prefix

when pressing a site link from wamp localhost dashboard, site does not include the localhost prefix, therefore not working.

per example.

pressing:my site results in address: mysite and i have to manualy put the localhost prefix in order for the site to load: localhost/mysite

how can i fix this?

appreciate any help. thanks Jonathan

Upvotes: 0

Views: 1777

Answers (2)

Arun
Arun

Reputation: 3721

You don't have to create virtual host if u don't need. Just do the following

open www/wamp/index.php

then change the line

$suppress_localhost = true;

to

$suppress_localhost = false;

This works good for me

Upvotes: 6

Adrian B
Adrian B

Reputation: 1631

You can use html base tag to specify host for all links. More details here: http://www.w3schools.com/tags/tag_base.asp

Upvotes: 1

Related Questions