Results 1 to 4 of 4

Help with sitemap location

This is a discussion on Help with sitemap location within the General Discussion forums, part of the vBSEO Google/Yahoo Sitemap category; I have read a few other threads on here about this but don't want to hijack them (and couldn't follow ...

  1. #1
    Junior Member
    Real Name
    Jay Bolt
    Join Date
    Feb 2006
    Location
    Wakefield, UK
    Posts
    25
    Liked
    0 times

    Help with sitemap location

    I have read a few other threads on here about this but don't want to hijack them (and couldn't follow them too well anyway!)

    I want my sitemaps to be in the root folder but at the minute.

    What I want:

    Code:
    http://www.yorkshire-divers.com/sitemap.txt.gz
    What I got:

    Code:
    http://www.yorkshire-divers.com/forums/sitemap.txt.gz
    My .htaccess file (in my /forums/ dir)

    Code:
    Options FollowSymLinks
    # 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
    RewriteRule ^(sitemap.*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    
    # 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 ^((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    
    RewriteCond %{REQUEST_FILENAME} -f
    RewriteCond %{REQUEST_FILENAME} (admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.*)$ $1 [L]
    
    RewriteCond %{QUERY_STRING} !vbseourl=
    RewriteCond %{REQUEST_FILENAME} !chat
    RewriteRule ^(.*\.php)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]
    
    RewriteRule ^(archive/.*)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.+)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]
    I see a couple of conflicting rewrites here relating to the sitemaps location but, to be honest, rewrites are all voodoo to me at the moment.

    Can someone point me in the right direction please?

    Regards
    Regards

    Jay
    ________________________
    YD Scuba Forums

  2. #2
    Senior Member
    Real Name
    Holger
    Join Date
    Oct 2005
    Location
    Frankfurt / Germany
    Posts
    611
    Liked
    1 times
    make .htaccess in /
    PHP Code:
    RewriteEngine On
    RewriteRule 
    ^forums/(sitemap.*\.(xml|txt)(\.gz)?)$ forums/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$[L
    and edit your .htaccess in

    PHP Code:
    RewriteEngine On
    Options 
    +FollowSymLinks

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

    RewriteCond %{REQUEST_FILENAME} -f
    RewriteCond 
    %{REQUEST_FILENAME} (admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.*)$ $[L]

    RewriteCond %{QUERY_STRING} !vbseourl=
    RewriteCond %{REQUEST_FILENAME} !chat
    RewriteRule 
    ^(.*.php)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]

    RewriteRule ^(archive/.*)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond 
    %{REQUEST_FILENAME} !-d
    RewriteRule 
    ^(.+)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L
    regards

  3. #3
    Junior Member
    Real Name
    Jay Bolt
    Join Date
    Feb 2006
    Location
    Wakefield, UK
    Posts
    25
    Liked
    0 times
    Thanks for response

    I had to amend the root .htacess statement you gave to:

    PHP Code:
    RewriteEngine On
    RewriteRule 
    ^(sitemap.*.(xml|txt)(.gz)?)$ /forums/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$[L
    to make this work.

    What does the /forums/ statements you gave do differently to the old ones (if anything)?

    Thanks for your reply
    Regards

    Jay
    ________________________
    YD Scuba Forums

  4. #4
    Junior Member
    Real Name
    Jay Bolt
    Join Date
    Feb 2006
    Location
    Wakefield, UK
    Posts
    25
    Liked
    0 times
    Ignore that - just followed it and see you've tidied it up for me
    Regards

    Jay
    ________________________
    YD Scuba Forums

Similar Threads

  1. Google Sitemap Error (Location?)
    By Spitfire in forum General Discussion
    Replies: 5
    Last Post: 05-30-2006, 07:12 AM
  2. Sitemap Location?
    By Atheda in forum General Discussion
    Replies: 8
    Last Post: 04-19-2006, 06:26 PM
  3. Memory Problem:
    By TraumTeam in forum Troubleshooting
    Replies: 1
    Last Post: 04-06-2006, 09:24 AM
  4. Sitemap location
    By farisb in forum Troubleshooting
    Replies: 6
    Last Post: 01-25-2006, 12:00 PM
  5. Replies: 0
    Last Post: 12-17-2005, 02:11 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
  •