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

Sitemap in www root

This is a discussion on Sitemap in www root within the General Discussion forums, part of the vBSEO Google/Yahoo Sitemap category; A quick question. The .gz files created by vbseo_sitemap are placed in vbseo_sitemap/data. Many sites are setup with vbadvanced in ...

  1. #1
    Junior Member
    Join Date
    Dec 2005
    Posts
    15
    Liked
    0 times

    Sitemap in www root

    A quick question. The .gz files created by vbseo_sitemap are placed in vbseo_sitemap/data. Many sites are setup with vbadvanced in web root and vbulletin in /forums. Rather than use the rewrite rule in .htaccess to rewrite Yahoo and Google from vbseo_sitemap/data to /, is it reasonble to use a cron job to simply copy the sitemap .gz files to the web root. Google specifically state site maps are best placed in web root.

  2. #2
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    12 times
    No need to copy them. You can just modify (or create) the .htaccess in the ROOT of your site to make them accessible from there.

    Code:
    RewriteEngine On
    RewriteRule ^(sitemap.*\.(xml|txt)(\.gz)?)$ /forums/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    (Change the /forums/ to match your naming.)

  3. #3
    Junior Member
    Join Date
    Dec 2005
    Posts
    15
    Liked
    0 times
    Ah, of course. Thanks.

  4. #4
    Senior Member
    Real Name
    joao barroca
    Join Date
    Apr 2006
    Location
    rio de janeiro
    Posts
    124
    Liked
    0 times

    Question

    Hello,
    I follows the instructions of this message but did not obtain success.
    Googlesitemaps index does not recognize the way to my sitemap
    I write http://www.x-trad.org/sitemap_index.xml and google says:
    Example: Http://www.x-trad.org/sitemap.xml
    It was not possible to find sitemap in the supplied location. Check if the URL is correct and send again your Sitemap.
    I use vbadvanced and my root forum is in PORTAL X-TRAD - powered by vBulletin
    My htaccess in root site is
    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]


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

    and the htaccess in the root forum is...
    # 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.
    # linha comentada por mim RewriteEngine On
    RewriteEngine On
    RewriteRule ^(sitemap.*.(xml.gz|txt))$ 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 follow the instructions in other thread about vbadvanced.
    I need help.
    Tks a lot
    barroca

  5. #5
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Hello barroca,

    the correct URL to your sitemap is: http://x-trad.org/sitemap_index.xml.gz (notice the ".gz" part and no "www." in domain)
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  6. #6
    Senior Member
    Real Name
    joao barroca
    Join Date
    Apr 2006
    Location
    rio de janeiro
    Posts
    124
    Liked
    0 times

    Question

    Yes! I know ... my error was in typing here.
    In google [grrrr!] I enter with .gz
    And DON'T works....
    cheers
    barroca
    ps. in vb-brasil [without vbseo, but with vbadvanced + google generator] google acepts the local ?!?!?!

  7. #7
    Senior Member
    Real Name
    joao barroca
    Join Date
    Apr 2006
    Location
    rio de janeiro
    Posts
    124
    Liked
    0 times
    uuuuuuuouuuuuuu!
    works now - my error is in 'www'
    tks Oleg
    barroca

  8. #8
    Senior Member HaYLaZ's Avatar
    Real Name
    Sadri
    Join Date
    May 2006
    Location
    Balıkesir
    Posts
    197
    Liked
    0 times
    my forum is in root.But vbseo creates sitemaps in data folder but i want that vbseo will create them in forums root.Because every time its difficult to carry the xml files from data folder to forums root.What must i write htaccess fie for creating xmls in forums root.
    thanks everybody

  9. #9
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Hello Mehmet,

    you should NOT move the files from vbseo_sitemap/data/ folder to the documents root. Instead, you should create .htaccess file with mod_rewrite directives as specified in installation instructions.
    That will allow to access sitemap files at the forums root, although files are physically stored in data/ folder.
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  10. #10
    Senior Member HaYLaZ's Avatar
    Real Name
    Sadri
    Join Date
    May 2006
    Location
    Balıkesir
    Posts
    197
    Liked
    0 times
    thanks for your reply.
    which commands must i write htaccess fie

    in my htaccess file the codes are below;

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


  11. #11
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Your .htaccess file is correct, you can remove sitemap files from the root now and try to access them to make sure it works as expected.
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  12. #12
    Senior Member HaYLaZ's Avatar
    Real Name
    Sadri
    Join Date
    May 2006
    Location
    Balıkesir
    Posts
    197
    Liked
    0 times
    i cant submit sitemap files to google because of permissions.
    when i write the adres to explorer i am taking this error below;

    Code:
    Forbidden
     
    You don't have permission to access /vbseo_sitemap/data/sitemap_1.xml.gz on this server. 
     
    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
    how can i fix this i upgraded vbseo to 1.6.1 version

    editted.
    i fixed it now i move htacces file to vbseo_sitemap folder and now i can access sitemap files from browser but when i try to add my sitemaps to google taking this error below;

    Note: i a writing this sitemap way http://www.xxxxx.com/vbseo_sitemap/d...temap_1.xml.gz (is it true?)

    Code:
    The Sitemap must be located at http://www.xxxxxxx.com/. To add a Sitemap at http://www.xxxxxx.com/vbseo_sitemap/data/, first add that site to your account and then click the Add a Sitemap link beside it.

  13. #13
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  14. #14
    Senior Member HaYLaZ's Avatar
    Real Name
    Sadri
    Join Date
    May 2006
    Location
    Balıkesir
    Posts
    197
    Liked
    0 times
    thanks friend its done

  15. #15
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Great!
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


Page 1 of 2 1 2 LastLast

Similar Threads

  1. Memory Problem:
    By TraumTeam in forum Troubleshooting
    Replies: 1
    Last Post: 04-06-2006, 09:24 AM
  2. Moving sitemap folder to root (above /forums) causes issue
    By Ace Shattock in forum Troubleshooting
    Replies: 4
    Last Post: 12-20-2005, 06:18 AM
  3. Replies: 0
    Last Post: 12-17-2005, 02:11 PM
  4. VBSEO crashing new server
    By MentaL in forum Troubleshooting
    Replies: 20
    Last Post: 12-11-2005, 07: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
  •