Removing file extentions from sitemap
« on: February 19, 2014, 02:22:11 PM »
Good afternoon,

Within .htaccess i've removed file extentions .html and .php

The sitemap is working perfectly, however a few duplications have started to occur in the sitemap.xml
  • examplepage.html
  • examplepage
What would be the best way to remove all of the .html and .php extentions from the sitemap which generates on a cron?

I appreciate any help,

Many Thanks

Alex
Re: Removing file extentions from sitemap
« Reply #2 on: February 21, 2014, 09:17:56 AM »
Hi,

It's just the extention i'm wanting removed, not the pages?

It's currently as this;

[ External links are visible to forum administrators only ]
[ External links are visible to forum administrators only ]
[ External links are visible to forum administrators only ]
[ External links are visible to forum administrators only ]
[ External links are visible to forum administrators only ]

I'm wanting the sitemap to say;

[ External links are visible to forum administrators only ]
[ External links are visible to forum administrators only ]
[ External links are visible to forum administrators only ]
[ External links are visible to forum administrators only ]
[ External links are visible to forum administrators only ]
Re: Removing file extentions from sitemap
« Reply #3 on: February 23, 2014, 08:18:19 AM »
Hello,

you would need to include links in that way on your pages in this case.