• Welcome to Sitemap Generator Forum.
 

Link error when using compression

Started by CallumW, June 22, 2008, 01:21:42 PM

Previous topic - Next topic

CallumW

Hi
I activated "Compress sitemap using GZip:"

Works fine and when I go to the "View Sitemap" tab all the links work fine.
But ......

On the left "Sitemap details" box there are links for each of the map types and there is an issue.
It should link as follows:
XML sitemap  (domain/sitemap.xml.gz)
In text format  (domain/urllist.txt.gz)
In ROR format  (domain/ror.xml)
HTML sitemap  (domain/sitemap.html

However, it actually creates the following (dead) links:
XML sitemap  (domain/sitemap.xml)
In text format  (domain/urllist.txt.gz)
In ROR format  (domain/ror.xml.gz)
HTML sitemap  (domain/sitemap.html)

Just needs a tweak to get the links to point to the correct Gzip files.

CallumW

Just spotted that you can hard code this in the "Your Sitemap URL" under the General Settings

But in theory the link on the left should take this and append ".gz" if compression is activated
Apart from which, the ror.xml.gz  is still wrong ;)

XML-Sitemaps Support

Hello,

you should still specify filenames as sitemap.xml and .gz should be appended automatically.
Did you generate sitemap after enabling gzip compression?

CallumW

Yes the actual files created are correct, but the links in the left navbar are incorrect.
The link should be to sitemap.xml.gz and there is no ror.xml.gz

I'm using the most current version (2.9?)


me6

Similar problem here.
With .gz compression turned on - it does not generate ror.xml.gz
With compression Off - it does generate ror.xml

Also urllist.txt is being created in Data folder only, not in main directory

XML-Sitemaps Support

Hello,

if you enable gzip compression, make sure that you manually create empty ror.xml.gz and sitemap.xml.gz files in domain root first, assign 0666 permissions to them and then regenerate sitemap. urllist.txt is designed to be stored in data/ folder since it's not required to have it in domain root.

me6

Thank you Oleg, I added empty file ror.xml.gz (666), so it generates the file but with errors.
You can see it here:
[ External links are visible to forum administrators only ]
Content Encoding Error
The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.
Parsing error, line 1, column 1

And there is no ror file in Data folder, is it normal?

All other .gz files in root directory are fine.

me6

And with compression Off, it generates ror.xml correctly.
With Compression On, generates error as per my previous post.
And looking at the files size, the size of good ror.xml and the faulty ror.xml.gz are the same, so it doesn't compress.

XML-Sitemaps Support

Hello,

looks like your server doesn't support built-in PHP gzip functions, so you should keep your sitemaps uncompressed.

me6

so why it generates /sitemap.xml.gz correctly?

XML-Sitemaps Support

Actually, ROR sitemap is not gzip compressed as there is no official confirmation that it's supported. We will update the script to create ROR sitemap as "ror.xml" filename even with gzip enabled.
Sorry for confusion.

me6

Oleg, when we can expect script update?