Results 1 to 5 of 5

404 error on sitemap

This is a discussion on 404 error on sitemap within the Troubleshooting forums, part of the vBSEO Google/Yahoo Sitemap category; hello! I'm assuming it's a 404 error because i just get redirected to the forums homepage. The sitemap seems to ...

  1. #1
    Junior Member
    Real Name
    Liz
    Join Date
    Jul 2008
    Posts
    3
    Liked
    0 times

    Question 404 error on sitemap

    hello!

    I'm assuming it's a 404 error because i just get redirected to the forums homepage. The sitemap seems to be generating ok because the files are in the data dir.

    http://www.thebabycorner.com/boards/...p_index.xml.gz

    .htaccess is located in the forum root

    I have tried changing rewrite condition line to include vbseo_sitemap to :

    Code:
    RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap)
    mod rewrite is working as I use it across the site and nothing appears to be broken.

    here is my .htaccess file:

    Code:
    RewriteEngine On
    #RewriteBase /
    
    #Do not remove these two lines
    DirectoryIndex index.html index.php
    AddDefaultCharset utf8
    AddCharset utf8 .html
    AddType 'textml; charset=utf8' html
    
    # gzip css, javascript, html file
    <IfModule mod_rewrite.c>
    RewriteCond %{REQUEST_FILENAME} -f
    
    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]
    
    </IfModule>
    
    FileETag None
    
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/gif A2592000
    ExpiresByType image/jpeg A2592000
    ExpiresByType image/png A2592000
    ExpiresByType application/x-shockwave-flash A2592000
    ExpiresByType text/css A2592000
    ExpiresByType application/x-javascript A2592000
    </IfModule>
    any ideas?

  2. #2
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    maker sure you have this rule

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

  3. #3
    Junior Member
    Real Name
    Liz
    Join Date
    Jul 2008
    Posts
    3
    Liked
    0 times
    it is in there.. see above please. is it maybe in the wrong place?

  4. #4
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    try chanigng this:

    <IfModule mod_rewrite.c>
    RewriteCond %{REQUEST_FILENAME} -f

    to this

    <IfModule mod_rewrite.c>



    That file catch rule seems out of place to me (you have another in the right sport at the bottom already)

  5. #5
    Junior Member
    Real Name
    Liz
    Join Date
    Jul 2008
    Posts
    3
    Liked
    0 times
    that worked! thank you!

Similar Threads

  1. Following Sitemap error:
    By kriscad in forum Troubleshooting
    Replies: 20
    Last Post: 07-30-2008, 01:09 PM
  2. Sitemap Error
    By jarod1981® in forum Troubleshooting
    Replies: 3
    Last Post: 04-10-2008, 02:52 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
  •