Page 1 of 2 1 2 LastLast
Results 1 to 15 of 25

File exists - but empty?

This is a discussion on File exists - but empty? within the Troubleshooting forums, part of the vBSEO Google/Yahoo Sitemap category; I installed the sitemap, ran the Sitemap generator without any problems. at the end it says: [create sitemap file] filename: ...

  1. #1
    Junior Member Array
    Real Name
    desiblast
    Join Date
    Jun 2009
    Posts
    18
    Liked
    0 times

    File exists - but empty?

    I installed the sitemap, ran the Sitemap generator without any problems.

    at the end it says:
    [create sitemap file] filename: sitemap_3.xml.gz, number of urls: 19576 [2,130.2Kb mem used] [6s (+0s)]
    [create sitemap index] filename: sitemap_index.xml.gz, number of sitemaps: 3 [2,130.8Kb mem used] [6s (+0s)]
    Sitemap has been created. Click here to return [2,130.3Kb mem used] [8s (+2s)]

    But when I download the sitemap_index.xml.gz, it is only 164 bytes and has this for content:

    <html>
    <head>
    <title>not found</title>
    </head>
    <body>

    Sorry, but the file you requested is not available.

    <p>Please <a href="/">start here</a>.

    </body>
    </html>

  2. #2
    Senior Member Array
    Real Name
    Marco Mamdouh
    Join Date
    May 2008
    Location
    Egypt
    Posts
    2,627
    Liked
    3 times
    Blog Entries
    1
    What's your forum URL ?
    Also try to remove all .gz files from the data folder and regenerate the sitemap manually and re-submit it

  3. #3
    vBSEO.com Webmaster Array Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    23,463
    Liked
    721 times
    Blog Entries
    4
    Make sure your vbseo_sitemap/data folder is set to chmod 777 and all files inside that folder is set to chmod 666. I suggest you to reinstall vBSEO Sitemap Generator.
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  4. #4
    Junior Member Array
    Real Name
    desiblast
    Join Date
    Jun 2009
    Posts
    18
    Liked
    0 times
    All that seems to be set fine.

    The .htaccess file in /data folder has "deny from all", is that suppose to be there?

    Tried reinstalling...

  5. #5
    Senior Member Array Shadab's Avatar
    Real Name
    Shadab
    Join Date
    Oct 2007
    Location
    Bhopal
    Posts
    821
    Liked
    0 times
    Blog Entries
    12
    The .htaccess file in /data folder has "deny from all", is that suppose to be there?
    Yep.

    EDIT:
    Are you sure that the rewrite rule for the sitemap is present in your forum's .htaccess file ?

  6. #6
    Junior Member Array
    Real Name
    desiblast
    Join Date
    Jun 2009
    Posts
    18
    Liked
    0 times
    I see this in my .htaccess (which is in my forums root directory)

    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]


    Is this it?

  7. #7
    Junior Member Array
    Real Name
    desiblast
    Join Date
    Jun 2009
    Posts
    18
    Liked
    0 times
    Actually all the files created in vbseo_sitemap/data folder are fine - the sitemap files that is.

    But when I access http://www.forum.url/forums/sitemap_index.xml.gz, it downloads a file but has the contents that I listed above.

    Anyway to add an exception to my .htaccess or something and just link that with this URL? Sorry I'm not too familiar with sitemaps, or editing .htaccess

    I do have some other stuff in .htaccess that may be conflicting, so is there anyway to just add an exception for this file and override all other rules?

    Let me know please!

    Thanks

  8. #8
    vBSEO.com Webmaster Array Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    23,463
    Liked
    721 times
    Blog Entries
    4
    What is your .htaccess content ?
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  9. #9
    Junior Member Array
    Real Name
    desiblast
    Join Date
    Jun 2009
    Posts
    18
    Liked
    0 times
    Here it is:

    Code:
    # Comment the following line (add '#' at the beginning)
    # to disable mod_rewrite functions.
    # Please note: you still need to disable the hack in
    # the vBSEO control panel to stop url rewrites.
    RewriteEngine On
    
    # Some servers require the Rewritebase directive to be
    # enabled (remove '#' at the beginning to activate)
    # Please note: when enabled, you must include the path
    # to your root vB folder (i.e. RewriteBase /forums/)
    #RewriteBase /
    
    RewriteCond %{HTTP_HOST} !^www\.siteurl\.tv
    RewriteRule (.*) http://www.siteurl.tv/forums/$1 [L,R=301]
    
    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    
    RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap)
    RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.+)$ vbseo.php [L,QSA]
    
    
    RewriteEngine On
    
    #----------------> start of cut and paste <-------------------
    
    # This first segment is used when the current directory is requested but with
    # just a trailing slash and no index.html name included in the URL.
    
    RewriteEngine On
    RewriteCond %{REQUEST_URI} !^/countrych/countrycheck.php
    RewriteRule ^$ /countrych/countrycheck.php?cc_indexfile=index.php [L]
    
    # This second segment is used when any subdirectory is requested but with just
    # a trailing slash and no index.html name included in the URL.
    
    RewriteCond %{REQUEST_URI} !^/countrych/countrycheck.php
    RewriteRule ^(.*)/$ /countrych/countrycheck.php?cc_indexfile=index.php [L]
    
    # This third segment is used when an actual file is requested with the full
    # path to the file included in the URL.
    
    RewriteCond %{REQUEST_URI} ^.*\.htm [OR]
    RewriteCond %{REQUEST_URI} ^.*\.html [OR]
    RewriteCond %{REQUEST_URI} ^.*\.php
    RewriteCond %{REQUEST_URI} !^/countrych/countrycheck.php
    RewriteRule ^(.+) /countrych/countrycheck.php [L]
    
    #----------------> end of cut and paste <-------------------
    It seems that if I remove:
    Code:
    RewriteCond %{REQUEST_URI} ^.*\.htm [OR]
    RewriteCond %{REQUEST_URI} ^.*\.html [OR]
    RewriteCond %{REQUEST_URI} ^.*\.php
    RewriteCond %{REQUEST_URI} !^/countrych/countrycheck.php
    RewriteRule ^(.+) /countrych/countrycheck.php [L]
    then it works fine. Is there anyway I can edit this, to incorporate .xml.gz files too or something?

    Thanks!

  10. #10
    Junior Member Array
    Real Name
    desiblast
    Join Date
    Jun 2009
    Posts
    18
    Liked
    0 times
    More info:

    countrycheck.php is something I'm using to block certain countries on my forums.

    Anyway so does anyone know how I can edit this .htaccess to fix it for this plugin?

    Thanks

    Marco my forum URL is www.desiblast.tv
    Last edited by desiblast; 06-22-2009 at 03:55 PM.

  11. #11
    Junior Member Array
    Real Name
    desiblast
    Join Date
    Jun 2009
    Posts
    18
    Liked
    0 times
    Anyone have any ideas?

  12. #12
    Senior Member Array
    Real Name
    Marco Mamdouh
    Join Date
    May 2008
    Location
    Egypt
    Posts
    2,627
    Liked
    3 times
    Blog Entries
    1
    Where is this file exist countrych/countrycheck.php ? it's not in your forum dir so why you are add his rules with your forum dir

  13. #13
    Junior Member Array
    Real Name
    desiblast
    Join Date
    Jun 2009
    Posts
    18
    Liked
    0 times
    Because /forums has a .htaccess as well, so if I don't include it here the /forums .htaccess will have priority (and the other code I want in .htaccess won't be included).

    So is there anyway I can "combine" the two "parts", vbseo and mine? I pasted my .htaccess above

    Please help!

    Thanks a lot

  14. #14
    Senior Member Array
    Real Name
    Marco Mamdouh
    Join Date
    May 2008
    Location
    Egypt
    Posts
    2,627
    Liked
    3 times
    Blog Entries
    1
    if the countrych folder in your site root the .htaccess should be inside it
    ex.
    site.com/countrych
    site.com/forum
    if the folder in your site root so you should put .htaccess in the countrych folder not in forum folder

  15. #15
    Junior Member Array
    Real Name
    desiblast
    Join Date
    Jun 2009
    Posts
    18
    Liked
    0 times
    No but I want those rules to be applied when people access my /forums folder....

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Replies: 8
    Last Post: 10-29-2006, 09:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •