I am generating the sitemap through PHP, since I want to control the URLs that are indexed, but I have a question, since before I did not use friendly URLs and now I do.
That is, for example I have this structure:
<url>
<loc>http://www.miweb.com/contacto.php</loc>
<priority>0.8</priority>
</url>
Should I change it to this one?
<url>
<loc>http://www.miweb.com/contacto/</loc>
<priority>0.8</priority>
</url>
That is, change contacto.php
to /contacto/
. I had planned to pass everything so that it would appear with friendly URLs, which I understand will be better for Google robots to understand what is in the URL.