I have seen that many pages open the same file (for example /home/index.php
) whether you put ejemplo.com/articulo1
or ejemplo.com/articulo2
.
My goal with this is to replace the home/&var=ejemplo
with home/ejemplo
and from the same file read the URL and show the content I need.
What I want is to know how this can be done, I imagine that since htacces
, but I have searched and in no way find anything.
For example, WordPress uses it, and as we know it does not create a file for each article, but read the link and show it from the same file through the database.
Thank you very much.