Hi, I have created a website and the buttons on the navigation bar take me down the page, to the parts with the ID set like this:
<li><a href="#service">Servicios</a></li>
I have a form in another folder (form) from which I call the "services" section of the following way:
<li><a href = "../index.html #service"> </a> </li>
Well, when I have it on my local computer, from the form folder it takes me to the #service
main page section. The problem comes when I upload it to the server and click on "services" from the form, it gives me an error: The requested URL form/index.html was not found on this server. How can I solve it, if it works locally and not on the server? Thank you
You must be careful if you are accessing from an IP or from the domain. You can try playing with the relative path like this:
You should also remove the space from index.html and #service.
Greetings.