XML Sitemaps Generator

Author Topic: BUG: Compress sitemap using GZip does not work  (Read 9239 times)

david68

  • Registered Customer
  • Approved member
  • *
  • Posts: 6
BUG: Compress sitemap using GZip does not work
« on: January 18, 2011, 10:16:00 PM »
I am unable to enact compressed sitemaps. I select the Compress sitemap using GZip option, click save, but it does not stay selected. My XML sitemap is getting up to 2mb and they need to be smaller.


XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10623
Re: BUG: Compress sitemap using GZip does not work
« Reply #1 on: January 19, 2011, 02:33:45 PM »
Hello,

try to manually set the option in generator/data/generator.conf file:
<option name="xs_compress">1</option>
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.

david68

  • Registered Customer
  • Approved member
  • *
  • Posts: 6
Re: BUG: Compress sitemap using GZip does not work
« Reply #2 on: January 19, 2011, 03:36:54 PM »
Thanks. That added it. I saw that the conf file was 644, so I changed to 666 (security risk?) and it can write from the control panel, so it is a permissions issue. I'm guessing that the conf file should not be 666.

Also, after adding the compress option, it automatically added this error message, but there are no files:
An error occured
Sitemap file is not writable: /var/www/vhosts/xxxx/httpdocs/sitemap.xml.gz
Sitemap file is not writable: /var/www/vhosts/xxxx/httpdocs/mobilesitemap.xml.gz

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10623
Re: BUG: Compress sitemap using GZip does not work
« Reply #3 on: January 19, 2011, 08:23:39 PM »
You should manually create empty file named sitemap.xml.gz in domain root and set 0666 permissions to it (same for mobile)
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.

david68

  • Registered Customer
  • Approved member
  • *
  • Posts: 6
Re: BUG: Compress sitemap using GZip does not work
« Reply #4 on: January 20, 2011, 05:16:21 PM »
Thanks. Is all working now.

One question, the generator.conf file was 644, but I changed to 666 to allow updates from the control panel. Is this a security risk?

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10623
Re: BUG: Compress sitemap using GZip does not work
« Reply #5 on: January 21, 2011, 12:15:20 AM »
Direct access to data/ folder is disallowed by .htaccess file, so it's not a risk, but to be on a safer side I'd switch to 0644 (and use 0666 only if configuraion needs to be updated)
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