Results 1 to 10 of 10

Sitemap URL is giving 404

This is a discussion on Sitemap URL is giving 404 within the Troubleshooting forums, part of the vBSEO Google/Yahoo Sitemap category; I have tried to access my sitemap via the URL in the AdminCP >> vBSEO Sitemap Reports and when I ...

  1. #1
    Member
    Join Date
    Oct 2005
    Posts
    46
    Liked
    1 times

    Sitemap URL is giving 404

    I have tried to access my sitemap via the URL in the AdminCP >> vBSEO Sitemap Reports and when I go to the URL I get a 404 error and redirected to the forum home page.

    I tried the suggestion here on this post:
    Sitmap not found 404

    In my http.conf I have the following
    PHP Code:
    <Directory /home/cooking/public_html/forums/>
    # 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 /

    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$vbseo_sitemap/vbseo_getsi$

    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
    What should I try next to get the sitemap to work?

  2. #2
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    this line shouldn't be commented out (remove #)

    Code:
    #RewriteCond %{REQUEST_FILENAME}!^(admincp|modcp|clientscript|cpstyles|images)/
    


    and you should also add in vbseo_sitemap to it as in

    Code:
    RewriteCond %{REQUEST_FILENAME}!^(admincp|modcp|clientscript|cpstyles|images|vbseo_sitemap)/
    


  3. #3
    Member
    Join Date
    Oct 2005
    Posts
    46
    Liked
    1 times
    My server admins commented that out because it was causing a syntax error.
    Syntax error on line 534 of /usr/local/apache2.2/conf/httpd.conf:
    RewriteCond: bad argument line '%{REQUEST_FILENAME}!^(admincp|modcp|clientscript| cpstyles|images|vbseo_sitemap/)/'
    What should I try next?

  4. #4
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    Code:
    RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images|useralbums|vbseo_sitemap)/
    that is a direct copy/paste from mine. no typos or syntax issues.

  5. #5
    Member
    Join Date
    Oct 2005
    Posts
    46
    Liked
    1 times
    well the syntax issues are resolved (there was a space missing) and now it allows me to restart Apache unfortunately I still get a 404 when trying to access the sitemap. What else should I look at?

    Here are the current rules:
    PHP Code:
    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$vbseo_sitemap/vbseo_getsitemap.php?sitemap=$[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|useralbums|vbseo_sitemap)/
    RewriteRule ^(.+)$ vbseo.php [L,QSA

  6. #6
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    what link are you using to access?

  7. #7
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    actually, i see it already...

    you have another space issue.

    the $ on line 1 is wrong.

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

  8. #8
    Member
    Join Date
    Oct 2005
    Posts
    46
    Liked
    1 times
    http://www1.discusscooking.com/forum...p_index.xml.gz

    The 1 is after the www1 because I use a load balanced setup. This is the primary server (master) and once I have this dialed in then I will have to configure the other web servers.

  9. #9
    Member
    Join Date
    Oct 2005
    Posts
    46
    Liked
    1 times
    You are THE MAN Brian. It's working now. Thanks for your help!

    I think this was caused by text wrapping issues when I posted the rewrite code for the server admins to add to the httpd.conf.

  10. #10
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    glad you got it fixed

Similar Threads

  1. Giving vBSEO as a contest Prize
    By FightRice in forum Pre-Sales Questions
    Replies: 2
    Last Post: 10-31-2006, 11:02 PM
  2. CRR giving error if thread has special name
    By jluerken in forum Custom Rewrite Rules
    Replies: 2
    Last Post: 07-15-2006, 03:20 AM
  3. test.php giving Database Error
    By chris06 in forum Troubleshooting
    Replies: 1
    Last Post: 12-07-2005, 03:42 PM
  4. All posts with a certain word in it are giving an error
    By nchoose in forum Troubleshooting
    Replies: 1
    Last Post: 10-25-2005, 04:45 AM

Posting Permissions

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