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

Sitemap Location

This is a discussion on Sitemap Location within the General Discussion forums, part of the vBSEO Google/Yahoo Sitemap category; Im having a problem getting the sitemap generator to save the created sitemap in the specified location. I am specifing ...

  1. #1
    Member
    Real Name
    Brandon
    Join Date
    Aug 2007
    Posts
    54
    Liked
    0 times

    Sitemap Location

    Im having a problem getting the sitemap generator to save the created sitemap in the specified location. I am specifing the location to be www.xxx.com. In the root directory basically... but it continues to save it in www.xxx.com/public_html/forum/vbseo_sitemap/data

    Please advise.

  2. #2
    vBSEO Staff Ace Shattock's Avatar
    Real Name
    Ace Shattock
    Join Date
    Jul 2005
    Location
    Auckland, New Zealand, New Zealand
    Posts
    3,998
    Liked
    11 times
    Hello Brandon,

    It is being created in the correct location.

    The .htaccess directive tells visitors to xxx.com/sitemap.xml.gz that it's there, when it's really in /forum/vbseo_sitemap/data/

  3. #3
    Member
    Real Name
    Brandon
    Join Date
    Aug 2007
    Posts
    54
    Liked
    0 times
    it is not possible to direct google webmaster tools to that directory though... when trying to add a sitemap with webmaster tools it says it must be in the root directory. Please advise. Thanks in advance

  4. #4
    vBSEO Staff Ace Shattock's Avatar
    Real Name
    Ace Shattock
    Join Date
    Jul 2005
    Location
    Auckland, New Zealand, New Zealand
    Posts
    3,998
    Liked
    11 times
    Indeed, that is correct.

    The .htaccess directive tells visitors to the sitemap at root level that it's there, when it's really in /forum/vbseo_sitemap/data/.

  5. #5
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    right.

    you submit domain.com/sitemap_index.xml.gz to google.
    with the htaccess rules,
    domain.com/sitemap_index.xml.gz actually points do the vbseo_sitemap/data/ folder, grabbing the correct file for google, much like domain.com/forum/t123/ actually goes to showthread.php?t=123 and so on.

  6. #6
    Member
    Real Name
    Brandon
    Join Date
    Aug 2007
    Posts
    54
    Liked
    0 times
    my current .htaccess rules contain nothing but the following:

    RewriteEngine On
    RewriteRule ^(forumdisplay\.php)/[^/]+-([0-9]+)/.* vbseo.php?vbseourl=$1&f=$2 [L]
    RewriteCond %{HTTP_HOST} ^leanbulk\.com
    RewriteRule ^(.*)$ http://www.leanbulk.com/$1 [R=permanent,L]
    <Files 403.shtml>
    order allow,deny
    allow from all
    </Files>

    Is this what needs to be included in order to direct google to the /forum/vbseo_sitemap/data/ location or do I need to add a command?

  7. #7
    vBSEO Staff Ace Shattock's Avatar
    Real Name
    Ace Shattock
    Join Date
    Jul 2005
    Location
    Auckland, New Zealand, New Zealand
    Posts
    3,998
    Liked
    11 times
    You aren't using the default vBSEO or vBSEO Sitemap .htaccess.

    That factor makes a difference, and negates almost everything I have said. I apologise for making that assumption.

    You need the sitemap rule from the default .htaccess.

  8. #8
    Member
    Real Name
    Brandon
    Join Date
    Aug 2007
    Posts
    54
    Liked
    0 times
    This modification was done per your staffs advice in order to redirect and rewrite previously listed google indexed pages...which I will add has worked great. This has been the case for 3 weeks now. Do you think it is safe for me to restore the defult vbSEO/sitemap .htaccess file? And if this is what you think needs to be done, are you referring to the .htaccess file included in vbseo 3.1 download? Furthermore, is there two separate .htaccess files? one for vbseo and one for vbseo site map generator?

    Thanks

  9. #9
    Member
    Real Name
    Brandon
    Join Date
    Aug 2007
    Posts
    54
    Liked
    0 times
    one last thing... the above notation is in the root directory .htaccess file... the .htacess file in the /public_html/forum/vbseo_sitemap/data directory reads: :"deny from all"

  10. #10
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    yes, it goes in ROOT htaccess. leave the one in the data folder alone. (that way no one can browse to that directory and view the files and all the bot hits directly)

  11. #11
    Member
    Real Name
    Brandon
    Join Date
    Aug 2007
    Posts
    54
    Liked
    0 times
    Quote Originally Posted by Ace Shattock View Post
    You aren't using the default vBSEO or vBSEO Sitemap .htaccess.

    That factor makes a difference, and negates almost everything I have said. I apologise for making that assumption.

    You need the sitemap rule from the default .htaccess.

    can you confrim this is the "defult" htaccess file you are referring to before I make this change.

    # 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\.yourdomain\.com
    #RewriteRule (.*) http://www.yourdomain.com/forums/$1 [L,R=301]
    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    RewriteCond %{QUERY_STRING} !vbseourl=
    RewriteCond %{REQUEST_URI} !(admincp/|modcp/|chat|cron)
    RewriteRule ^(.*\.php(/.*)?)$ vbseo.php?vbseourl=$1 [L,QSA]
    RewriteCond %{REQUEST_FILENAME} !\.(jpg|gif)$
    RewriteRule ^(archive/.*)$ vbseo.php?vbseourl=$1 [L,QSA]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.+)$ vbseo.php?vbseourl=$1 [L,QSA]

  12. #12
    Member
    Real Name
    Brandon
    Join Date
    Aug 2007
    Posts
    54
    Liked
    0 times
    simply put, all i need to do is replace my current htacess file with this exact htaccess file.. nothing more, nothing less, no changes?

  13. #13
    vBSEO Staff Ace Shattock's Avatar
    Real Name
    Ace Shattock
    Join Date
    Jul 2005
    Location
    Auckland, New Zealand, New Zealand
    Posts
    3,998
    Liked
    11 times
    Hi Brandon,

    As long as this line is in the .htaccess, the redirect will work.

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

  14. #14
    Member
    Real Name
    Brandon
    Join Date
    Aug 2007
    Posts
    54
    Liked
    0 times
    When site map generator runs the sitemal_index.xml goes in the /public_html/forum/vbseo_sitemap/data directory... i can only submit the sitemap_index.xml file to google webmaster sitemap location if it is in teh root directory... is there a way for vbseo sitemap generator to automatically put this in http://www.xxx.com/sitemap_index.xlml instead of http://www.xxx/forum/vbseo_sitemap/d...emap_index.xml

    thanks

  15. #15
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    you should submit

    site.com/forums/sitemap_index.xml.gz

    the htaccess rule will direct that to the vbseo_sitemap/data/ directives

Page 1 of 2 1 2 LastLast

Similar Threads

  1. What is the sitemap location?
    By LPH2005 in forum Troubleshooting
    Replies: 2
    Last Post: 07-03-2007, 02:10 PM
  2. Sitemap location
    By Ziki in forum General Discussion
    Replies: 28
    Last Post: 01-21-2007, 05:17 PM
  3. Help with sitemap location
    By UKJay in forum General Discussion
    Replies: 3
    Last Post: 05-01-2006, 08:32 AM
  4. Sitemap Location?
    By Atheda in forum General Discussion
    Replies: 8
    Last Post: 04-19-2006, 06:26 PM
  5. Sitemap location
    By farisb in forum Troubleshooting
    Replies: 6
    Last Post: 01-25-2006, 12:00 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
  •