XML Sitemaps Generator

Author Topic: XML Site map generator generating two versions of my pages  (Read 18632 times)

smarty470

  • Approved member
  • *
  • Posts: 1
XML Site map generator generating two versions of my pages
« on: August 24, 2012, 07:39:04 AM »
Dear all,

I have a website in which I am using the following htaccess code to hide the file extension

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*)$ $1.php

I then manually removed the .php extension from the entire website.

Now when I am generating a site map for many of my pages are getting generated twice. One with the php extension and one without the php extension.

Can someone explain to me what is wrong and how to fix this?

Thank you. Your help will be much appreciated.

Regards

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10622
Re: XML Site map generator generating two versions of my pages
« Reply #1 on: August 25, 2012, 05:15:33 PM »
Hello,

you can add ".php" to Exclude URLs setting.
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