Results 1 to 5 of 5

Moving sitemap folder to root (above /forums) causes issue

This is a discussion on Moving sitemap folder to root (above /forums) causes issue within the Troubleshooting forums, part of the vBSEO Google/Yahoo Sitemap category; http://www.nzboards.com/forums/?vbseorelpath=../ Thats what I get when I try to go to http://www.nzboards.com/vbseo_sitemap/index.php The content of my root .htaccess: Code: # ...

  1. #1
    vBSEO Staff Ace Shattock's Avatar
    Real Name
    Ace Shattock
    Join Date
    Jul 2005
    Location
    Auckland, New Zealand, New Zealand
    Posts
    3,999
    Liked
    12 times

    Moving sitemap folder to root (above /forums) causes issue

    http://www.nzboards.com/forums/?vbseorelpath=../

    Thats what I get when I try to go to http://www.nzboards.com/vbseo_sitemap/index.php

    The content of my root .htaccess:
    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 /forums
    RewriteRule ^(sitemap.*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    RewriteCond %{REQUEST_FILENAME} !forums/
    RewriteCond %{QUERY_STRING} !vbseourl=
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ forums/vbseo.php?vbseourl=$1&vbseorelpath=../&%{QUERY_STRING} [L]
    
    RewriteCond %{REQUEST_FILENAME} !forums/
    RewriteRule ^(.*.php)$ forums/vbseo.php?vbseourl=$1&vbseorelpath=../&%{QUERY_STRING} [L]
    I will move it back for now.. :(

  2. #2
    Senior Member
    Real Name
    Holger
    Join Date
    Oct 2005
    Location
    Frankfurt / Germany
    Posts
    611
    Liked
    1 times
    hello kall

    i missing \ in your rule

    your rule
    RewriteRule ^(sitemap.*.(xml|txt)(.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    would be correct
    RewriteRule ^(sitemap.*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    regards

  3. #3
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,741
    Liked
    168 times
    Kall,

    you should not move vbseo_sitemap outside of your forums folder because it is not designed to work in this way.

    I suppose that you're doing this because you have included root URLs into sitemap, right?

    If so, you should do the following instead:

    1. Leave Sitemap Generator in "forums/vbseo_sitemap/" as it is now.

    2. Include the following directive in your root .htaccess file:
    RewriteRule ^(sitemap.*\.(xml|txt)(.gz)?)$ forums/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    3. Manually submit all individual sitemap files to Google, referring them to root:
    http://www.yourdomain.com/sitemap_1.xml.gz
    http://www.yourdomain.com/sitemap_2.xml.gz
    etc.


    4. Turn off "Notify Google" in admincp options for vBSEO Sitemap Generator (since it notifies with sitemap URLs in forums/ folder).


    Does it make sense?

  4. #4
    vBSEO Staff Ace Shattock's Avatar
    Real Name
    Ace Shattock
    Join Date
    Jul 2005
    Location
    Auckland, New Zealand, New Zealand
    Posts
    3,999
    Liked
    12 times
    Total sense.

    If only I wasn't on my way to work, I would have a play.

  5. #5
    vBSEO Staff Ace Shattock's Avatar
    Real Name
    Ace Shattock
    Join Date
    Jul 2005
    Location
    Auckland, New Zealand, New Zealand
    Posts
    3,999
    Liked
    12 times
    Meanwhile... fsb-holger's rewrite rule works!

Similar Threads

  1. Help moving forum to domain root
    By treasureman in forum Troubleshooting
    Replies: 4
    Last Post: 04-20-2006, 09:19 PM
  2. Help moving from root folder to forum folder.
    By Amos in forum General Discussion
    Replies: 4
    Last Post: 01-29-2006, 09:20 PM
  3. Replies: 0
    Last Post: 12-17-2005, 01:11 PM
  4. VBSEO crashing new server
    By MentaL in forum Troubleshooting
    Replies: 20
    Last Post: 12-11-2005, 06:55 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
  •