Page 2 of 2 FirstFirst 1 2
Results 16 to 26 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; worked just fine for me with adding the web root .htaccess...

  1. #16
    Member
    Real Name
    AO
    Join Date
    May 2006
    Posts
    38
    Liked
    0 times
    worked just fine for me with adding the web root .htaccess

  2. #17
    Senior Member
    Real Name
    George
    Join Date
    May 2006
    Posts
    134
    Liked
    0 times

    Talking

    thanks!!

  3. #18
    Member REVHEAD's Avatar
    Real Name
    David
    Join Date
    Jan 2008
    Posts
    72
    Liked
    0 times
    When making the changes to the .htaccess folder to
    Code:
    RewriteEngine On
    RewriteRule ^(sitemap.*\.(xml|txt)(\.gz)?)$ /forums/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    in the main root Directory.

    I then go into Sitemap setting in CP and Your Google Sitemap Index URL still reads http://taskforcealliance.com/forums/sitemap_index.xml is this normal? Shouldnt it be ditching the /forums/ bit ?

  4. #19
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    168 times
    You should change "Sitemap Files URL" to http://domain.com

  5. #20
    Junior Member
    Real Name
    Global_Pilot
    Join Date
    Nov 2007
    Location
    Dayton, Ohio, United States
    Posts
    6
    Liked
    0 times
    Hello,

    So funny thing. I tried this tonight with two websites. The first one worked and the second site did not. Weird....

    Here is my entire htaccess content:

    Code:
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress
    
    RewriteEngine On
    RewriteRule ^(sitemap.*\.(xml|txt)(\.gz)?)$ /forums/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    Google is rejecting my sitemap (errors) and type the address into the browser gives me error (404) as well.

    I am placing this htaccess in root and my vbulletin installation is in forums/

    Any ideas?

  6. #21
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    168 times
    Hello,

    you should put rewrite rules for sitemap generator to the *top* of .htaccess.

  7. #22
    Junior Member
    Real Name
    Todd McCartney
    Join Date
    Jul 2006
    Posts
    11
    Liked
    0 times
    I did the same on my server, however I'm getting 403 errors when i access the sitemap index from the root. Ideas?

    -t

  8. #23
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    168 times
    What is your .htaccess contents/sitemap URL?

  9. #24
    Junior Member
    Real Name
    Todd McCartney
    Join Date
    Jul 2006
    Posts
    11
    Liked
    0 times
    Here is my root .htaccess
    PHP Code:
    Options All -Indexes

    #RedirectPermanent /index.htm http://www.wings900.com/news/index.php
    RewriteEngine On


    #RewriteRule ^index.php /cms/ [L]
    RewriteRule ^(sitemap_.*\.(xml|txt)(\.gz)?)$ vb/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$[L]



    RewriteCond %{HTTP_USER_AGENT} ^(ASPSeek|Deweb|Fetch|FlashGet|Getleft|GetURL|GetWebPage|.*HTTrack|KWebGet|libwww-perl|Mirror|NetAnts|NetCarta|netprospector|$
    RewriteRule .* /404.shtml [R]

    # Block out any script trying to set a mosConfig value through the URL
    RewriteCond %{QUERY_STRINGmosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
    # Block out any script trying to base64_encode crap to send via URL
    RewriteCond %{QUERY_STRINGbase64_encode.*\(.*\) [OR]
    # Block out any script that includes a <script> tag in URL
    RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
    # Block out any script trying to set a PHP GLOBALS variable via URL
    RewriteCond %{QUERY_STRINGGLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
    # Block out any script trying to modify a _REQUEST variable via URL
    RewriteCond %{QUERY_STRING_REQUEST(=|\[|\%[0-9A-Z]{0,2})
    # Send all blocked request to homepage with 403 Forbidden error!
    RewriteRule ^(.*)$ index.php [F,L]

    RewriteCond %{QUERY_STRING} .*.txt.* [NC]
    RewriteRule  ^(.*)$ /404.shtml [F,L]

    RewriteRule www.wings900.com /news/themes/Wings900/images/orangestrip2-no-top.gif

    RewriteRule help 
    /cms/component/option,com_supportcenter/Itemid,127/id_workgroup,1/task,workgroup_view/ [R]

    <
    Files 403.shtml>
    order allow,deny
    allow from all
    </Files
    and my /vb (where vb is installed) .htaccess
    PHP Code:
    Options All -Indexes

    # 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 ^(sitemap.*\.(xml|txt)(\.gz)?)$ /vb/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$[R]

    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 ^$ vbseo.php?vbseourl=index.php [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]

    <
    IfModule mod_security.c>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </IfModule>

    #this stops screen flicker in IE
    #BrowserMatch "MSIE" brokenvary=1
    #BrowserMatch "Mozilla/4.[0-9]{2}" brokenvary=1
    #BrowserMatch "Opera" !brokenvary
    #SetEnvIf brokenvary 1 force-no-vary

    ExpiresActive On
    #ExpiresDefault A18000
    ExpiresByType image/gif A300
    ExpiresByType image
    /png A300


    RewriteCond 
    %{QUERY_STRING} !vbseourl=
    RewriteCond %{REQUEST_URI} !(admincp/|modcp/|chat|cron)
    RewriteRule ^(.*\.php)$ vbseo.php?vbseourl=$[L,QSA]

    RewriteCond %{REQUEST_FILENAME} !\.(jpg|gif)$
    RewriteRule ^(archive/.*)$ vbseo.php?vbseourl=$[L,QSA]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond 
    %{REQUEST_FILENAME} !-d
    RewriteCond 
    %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.+)$ vbseo.php?vbseourl=$[L,QSA

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

  11. #26
    Junior Member
    Real Name
    Todd McCartney
    Join Date
    Jul 2006
    Posts
    11
    Liked
    0 times
    Quote Originally Posted by Oleg Ignatiuk View Post
    Look at that.. go figure.. i guess i changed enough around in the .htaccess files for it to work! lol

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. Memory Problem:
    By TraumTeam in forum Troubleshooting
    Replies: 1
    Last Post: 04-06-2006, 08: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, 05:18 AM
  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
  •