Uttam Dutta
Uttam Dutta

Reputation: 5310

Pointing my domain to a php application in wamp

I have WAMP installed in a machine and I have only one application in the www directory. SO I want localhost to point to my application directly.

In short, if I hit the

http://localhost/ 

in my browser i want my application to open. I don't want my application url to be like

http://localhost/application/

Can anyone help me out to do the configuration changes.

Thanks, Uttam Dutta

Upvotes: 0

Views: 63

Answers (2)

positivew
positivew

Reputation: 750

This answer should also be helpful, if you'd prefer to keep your files where they are now and point the DocumentRoot to the files instead.

Also, you may consider making a virtual host for each of your projects. Read about creating virtual hosts for localhost here.

Upvotes: 0

Quentin
Quentin

Reputation: 943631

Put the files for your application in the directory that your DocumentRoot points to instead of in a subdirectory (called application in your example) of that directory.

Upvotes: 2

Related Questions