Search code examples
wamp

Wamp basic configuration: "The requested URL /my-site/ was not found on this server."


I've just installed Wamp on a new computer with Windows 10 and I don't succeed to access any project in the "www" folder.

For example, I've created the folder "C:\wamp64\www\my-site" with a simple index.html file, but when I launch "localhost/my-site/", I have the following error:

Not Found

The requested URL /my-site/ was not found on this server.


Apache/2.4.17 (Win64) PHP/5.6.16 Server at localhost Port 80

On the other hand, "localhost/" and "localhost/phpmyadmin/" work perfectly fine.

I checked httpd.conf flie and everything seems to be okay:

#...
Listen 0.0.0.0:80
Listen [::0]:80
#...
ServerName localhost:80
#...
DocumentRoot "C:/wamp64/www/"
#...

Any idea to solve my problem?

Thank you in advance!


Solution

  • I've just find what was my problem.

    I didn't create a index.html but a index.html.txt ...

    And what troubled me is that with Wamp 3, the error was a 404 error. With Wamp 2, when you don't have an index file (or a .htaccess), it shows you the folder content.