vBulletin SEO Forums

SEO

vBulletin Search Engine Optimization

Buy vBSEO Now! HACKER SAFE certified sites prevent over 99.9% of hacker crime.
ne nw
vBSEO Total Support Team Launches DeskPro New vBSEO Discount Level for Network Builders vBSEO 3.2.0 GOLD Has Landed Success with vBSEO = 600ore Web Visitors + $1400 in a Day! Crawlability Inc. Files for SEO Technology Patent
se sw

Problems with sitemap

This is a discussion on Problems with sitemap within the Troubleshooting forums, part of the vBSEO SEO Plugin category; Hi there, I just installed the sitemap, but when I try to view it, I just get this error: http://www.webforumet.no/forum/sitemap_index.xml.gz ...

Go Back   vBulletin SEO Forums > vBSEO SEO Plugin > Troubleshooting

Enhancing 80 million pages.

Register FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read
  #1  
Old 11-29-2007, 10:50 PM
Junior Member
 
Real Name: Kenneth A. Dreyer
Join Date: Feb 2007
Posts: 27
Problems with sitemap

Hi there,

I just installed the sitemap, but when I try to view it, I just get this error:

http://www.webforumet.no/forum/sitemap_index.xml.gz

Anyone know what wrong?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #2  
Old 11-29-2007, 11:12 PM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,610
Hello,

please try to modify vbseo_getsitemap.php file:
FIND:
PHP Code:
        @header('Content-Length: '.filesize(VBSEO_DAT_FOLDER $smap)); 
ADD ABOVE:
PHP Code:
        @ini_set("zlib.output_compression"0); 
__________________
Oleg Ignatiuk / Crawlability Inc.
Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service

vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #3  
Old 11-30-2007, 07:03 AM
Junior Member
 
Real Name: Kenneth A. Dreyer
Join Date: Feb 2007
Posts: 27
Added it but I still get the error.

This is my current code

PHP Code:
    error_reporting(E_ALL&~E_NOTICE);
       require 
dirname(__FILE__).'/vbseo_sitemap_config.php';

    
$smap $_GET['sitemap'];
    
$smap preg_replace('#^.*/([^/]*)$#''$1'$smap);
    
$smap_parts explode('.'$smap);
    
$ext $smap_parts[count($smap_parts)-1];
    
$preext $smap_parts[count($smap_parts)-2];


    if(
file_exists(VBSEO_DAT_FOLDER $smap))
    {
        
preg_match('#(googlebot|yahoo)#i'$_SERVER['HTTP_USER_AGENT'], $umatch);
           
$dl_log VBSEO_DAT_FOLDER.'downloads.dat';
           
$dl_list file_exists($dl_log) ? unserialize(implode(''file($dl_log))) : array();

           
$dl_list[] = array(
               
'time'=>time(),
               
'useragent'=>$_SERVER['HTTP_USER_AGENT'],
               
'ip'=>$_SERVER['REMOTE_ADDR'],
               
'ua'=>$umatch[1],
               
'sitemap'=>$smap
           
);
           
$pf fopen($dl_log'w');
           
fwrite($pfserialize($dl_list));
           
fclose($pf);

        
$content_types = array(
            
'txt' => 'plain/text',
            
'gz' => 'application/x-gzip',
            
'xml' => 'text/xml'
        
);


        
        @
ini_set("zlib.output_compression"0);  
        @
header('Content-Length: '.filesize(VBSEO_DAT_FOLDER $smap));
        
        if(
$ext=='gz' && ($umatch[1] || !strstr($_SERVER['HTTP_ACCEPT_ENCODING'],'gzip')) )
        {
            @
header'Content-Type: ' $content_types[$ext] );
        }else
        {
            @
header('Content-Type: '.($content_types[$preext] ? $content_types[$preext] : $content_types[$ext]) );
            if(
$ext=='gz')
                @
header('Content-Encoding: gzip' );
        }

        
set_magic_quotes_runtime(0);
        
$pf = @fopenVBSEO_DAT_FOLDER $smap'rb' );
        if(
$pf)
        while (!@
feof($pf)) {
           
$buffer = @fread($pf1000000);
           echo 
$buffer;
        }
          @
fclose($pf); 
           exit;

    }else
    {
           @
Header ("HTTP/1.1 404 Not Found");
        @
header("Status: 404 Not Found");
        echo 
'Sitemap file not found';
    }
?> 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #4  
Old 11-30-2007, 07:31 AM
Mert Gökçeimam's Avatar
vBSEO.com Webmaster
vBSEO Total Customer SupportvBulletin HackerBig Board Administrator
 
Real Name: Lizard King
Join Date: Oct 2005
Location: Istanbul
Posts: 7,831
Blog Entries: 1
Send a message via MSN to Mert Gökçeimam
Did you generate sitemap files after the file edit ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #5  
Old 11-30-2007, 08:01 AM
Junior Member
 
Real Name: Kenneth A. Dreyer
Join Date: Feb 2007
Posts: 27
No, I didn't, but I just did and there still is some kind of error!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #6  
Old 11-30-2007, 11:14 AM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,610
Try this:
FIND:
PHP Code:
        if($ext=='gz' && ($umatch[1] || !strstr($_SERVER['HTTP_ACCEPT_ENCODING'],'gzip')) ) 
REPLACE WITH:
PHP Code:
if(1
__________________
Oleg Ignatiuk / Crawlability Inc.
Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service

vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #7  
Old 11-30-2007, 01:26 PM
Junior Member
 
Real Name: Kenneth A. Dreyer
Join Date: Feb 2007
Posts: 27
Don't get any errors now, but I do get a downloadable file that is corrupt when I try unzipping it. Is that correct?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #8  
Old 12-01-2007, 11:09 AM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,610
Seems to be related to server's gzip compression settings, can you provide ftp acces via support ticket to check that?

It should work fine for Google as is though.
__________________
Oleg Ignatiuk / Crawlability Inc.
Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service

vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #9  
Old 12-01-2007, 11:12 AM
Junior Member
 
Real Name: Kenneth A. Dreyer
Join Date: Feb 2007
Posts: 27
Yeah, It works fine with Google.

Thanks for the help!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
vBSEO Sitemap Generator 2.0 Released Juan Muriente vBSEO Announcements 18 12-11-2007 02:44 PM
Sitemap problems jewropa Troubleshooting 5 12-02-2007 09:46 AM


All times are GMT -4. The time now is 06:32 PM.


Powered by vBulletin Version 3.8.0 Beta 4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.5 ©2008, Crawlability, Inc.