I’ve already done this but it doesn’t work
I have a localhost for my WordPress
And everytime I try to make a new one it just doesn’t let me to have multiple localhosts
Where did I go wrong?
Im using visual studio code as my code editor
Do I have to set any specific setting?
2
Answers
First, you must be sure about how "localhost" works.
Try to search about socket and Apache Virtual Host, I believe it´ll help you.
About your problem….
Are you using Xampp? If so, you can try to split your multiples projects in different folders (all inside httpdocs), so the access will be like localhost/proj-a and localhost/proj-b
If you´re using Docker or if you really need a full unique URL without folders…. try to set up your Docker, Nginx, Apache, or the tool you´re using to start in a new port (remember 80 is the default), so assuming your Docker will use the port 8080, your access will be localhost:8080.
If it´s not clean, please try to read about my 2 suggestions and after that give us more details that someone for sure will help.
It may be related to the .htaccess file, the localhost/php path must be allowed in it.
For testing, you can rename the .htaccess file on htdocs/localhost.
The .htaccess file may be hidden.