XML Sitemaps Generator

Author Topic: Removing file extentions from sitemap  (Read 5879 times)

alex39

  • Registered Customer
  • Approved member
  • *
  • Posts: 2
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

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10625
Re: Removing file extentions from sitemap
« Reply #1 on: February 20, 2014, 08:41:02 PM »
Hello,

you can add this in Exclude URLs setting:
Code: [Select]
.html
.php
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

alex39

  • Registered Customer
  • Approved member
  • *
  • Posts: 2
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 admins only]
[external links are visible to admins only]
[external links are visible to admins only]
[external links are visible to admins only]
[external links are visible to admins only]

I'm wanting the sitemap to say;

[external links are visible to admins only]
[external links are visible to admins only]
[external links are visible to admins only]
[external links are visible to admins only]
[external links are visible to admins only]

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10625
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.
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

 

SMF 2.0.12 | SMF © 2014, Simple Machines
XHTML RSS WAP2