0
Good afternoon, everyone. Could you help me with my question ? I wanted to rewrite a URL.
For example:
<a href="#Contato">Contato</a>
which points to a DIV Contact ID, however, the URL is:
https://site.com/index.php#Contato
and wanted you to stay:
https:site.com/Contato
I have tried to configure htaccess, however, nothing has changed :(
this "https:site.com/contact" url is invalid, that’s exactly what you want to do?
– Ricardo Pontual
URL rewrite is done on the server.. A tag
<a>
you can put the link as you like, but it will not be guaranteed that the server will recognize that URL. Look for "friendly urls" on the web and see how they do on different servers (Nginx, apache, IIS, etc..) (one of the first responses of the research)– fernandosavio
Relevant link: https://pt.meta.stackoverflow.com/q/499/132
– Victor Stafusa