XML Sitemaps Generator

Author Topic: Standalone Sitemap Generator and htacesss Rewrite Rules  (Read 34571 times)

info4

  • Registered Customer
  • Approved member
  • *
  • Posts: 2
Standalone Sitemap Generator and htacesss Rewrite Rules
« on: August 11, 2005, 06:27:55 AM »
Is there anyway to get the standalone sitemap generator to work with RewriteRules within an htaccess file.

I have a site set up that uses the Rewrite Rule to rewrite meaningful urls for improved search engine friendliness into the true urls. So for example

[external links are visible to admins only]
will get rewritten as [external links are visible to admins only]
but visitors and search engines see the first (more friendly URL)

When the sitemap generator comes across links within these pages (which are links to individual products) it seems to stumble. It doesn't seem to find the friendly URL which should look something like:
[external links are visible to admins only]
and get rewritten to
[external links are visible to admins only]

Instead it seems to go on 'burrowing' down into 'made up' sub-directories and I end up with a sitemap that contains urls such as:

[external links are visible to admins only]
and on it goes adding yet more 'Books' sub-directories and it never seems to stop.

I must admit to not knowing too much about Rewrite Rules so if there is anyone here who could help me (maybe I need to  add something else to the htaccess file?) I'd very much appreciate it. If the sitemap generator doesn't work with Rewrite Rules then could you let me know also, before I waste too much time trying to sort this out.

Thanks.
Al.

« Last Edit: August 11, 2005, 06:29:32 AM by info4 »

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10624
Re: Standalone Sitemap Generator and htacesss Rewrite Rules
« Reply #1 on: August 11, 2005, 09:04:28 AM »
Hi Al,

there is no problem with crawling a site with mod_rewrite rules with sitemap generator. It acts exactly as SE bot does and just retrieves the URLs found on your pages.
I believe the problem is that you have the following tag:
<base href='http://www.forces-of-nature.co.uk/store/'>

Generator supports the <base> tag, but the attributes should be enclosed in double quotes ("). For the moment you can replace this line with:
<base href="http://www.forces-of-nature.co.uk/store/">

The next version of generator will work with both quotes types.
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.

info4

  • Registered Customer
  • Approved member
  • *
  • Posts: 2
Re: Standalone Sitemap Generator and htacesss Rewrite Rules
« Reply #2 on: August 11, 2005, 01:44:15 PM »
Brilliant answer, that seems to have fixed the problem, Well spotted and thanks!!

Al.

 

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