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

installing sitemap .htaccess question

This is a discussion on installing sitemap .htaccess question within the General Discussion forums, part of the vBSEO Google/Yahoo Sitemap category; I'm installing vBSEO sitemap. I'm at the .htaccess configuration part, the instructions say I need to enter the following code: ...

  1. #1
    Senior Member
    Real Name
    Art
    Join Date
    Nov 2006
    Posts
    150
    Liked
    2 times

    installing sitemap .htaccess question

    I'm installing vBSEO sitemap. I'm at the .htaccess configuration part, the instructions say I need to enter the following code:

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


    Here is the contents of the exisiting .htaccess file at vbroot:

    # 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 vBulletin 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_FILENAME} !(admincp/|modcp/|chat|cron)
    RewriteRule ^(.*.php)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]
    RewriteCond %{REQUEST_FILENAME} !.(jpg|gif)$
    RewriteRule ^(archive/.*)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !(admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.+)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]


    Where do I insert the necessary code? I noticed that RewriteEngine is on, didn't know if I needed to "turn it on" twice. Also, regarding the "Enter your Direct Script Run Code" part..what is this and where do I find it?

    Thanks, slowly but surely getting this working..learning all the way.

  2. #2
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    13 times
    If you're running vBSEO, you don't need to do anything. The rule is already included in vBSEO's .htaccess file.

  3. #3
    Senior Member
    Real Name
    Art
    Join Date
    Nov 2006
    Posts
    150
    Liked
    2 times
    O.K., thanks, some of my exisiting .htacces code looked similar to what was being instructed to insert so I was hoping that was the case. Can you please tell me about the "Direct Script Run Code"?

    Thank you!

  4. #4
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    13 times
    Download and install vBSEO Sitemap 1.7 from the downloads area here. The new version is required for vBSEO 3.0.0. (And it also renames that "Direct Script Run Code" field to "Password", to make it more clear what it is. ) That's all controlled from AdminCP->vBulletin Options->vBSEO Sitemap Options
    Last edited by Keith Cohen; 12-22-2006 at 10:16 AM.

  5. #5
    Senior Member
    Real Name
    Art
    Join Date
    Nov 2006
    Posts
    150
    Liked
    2 times
    Gotcha.."Direct Script Run Code" is much clearer now.. is there anything that I should consider tweaking in there or is it pretty much setup to work O.K. as is?

    I'm getting there thanks Keith

  6. #6
    Senior Member
    Real Name
    Art
    Join Date
    Nov 2006
    Posts
    150
    Liked
    2 times
    O.K., got everything setup, setup a new task, it ran flawlessly and I received the following email:

    Hello!

    The vBSEO Google/Yahoo Sitemap has been successfully generated for your vBulletin forums at:
    MySite Forum (http://www.mysite.com/forum)

    Report:
    ============================
    Click the following link for your vBSEO Google/Yahoo Sitemap Report:
    http://www.mysite.com/forum/vbseo_sitemap/

    Summary:
    ============================
    Forum Display: 278
    Show Thread: 7946
    Show Post: 51260
    Member Profiles: 725
    Poll Results: 55
    Archive: 126

    Total Indexed URLs: 60391
    Total Processing Time: 45.60 seconds

    Google ping: Successful.
    Yahoo ping: Successful.

    So, this sounds good. I'm guessing that the Google ping and Yahoo ping are essentially invitations to these guys to "come and get it" or am I far off the mark on that? just wondering what else I need to do.

  7. #7
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    13 times
    Yes, looks good. I just checked your site and the sitemap files are accessible, so the search engines should be able to retrieve them.

  8. #8
    Senior Member
    Real Name
    Art
    Join Date
    Nov 2006
    Posts
    150
    Liked
    2 times
    Keith,

    Do I need to tell the search engines anything? I'm at my Google webmaster tools page and it looks like I should add a sitemap there. I had to add a site in the form of http://www.mysite.com/forum so that the sitemap file could be found. Is this correct?

  9. #9
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    13 times
    Yes, you should add a sitemap. Add the index, and that will always list any/all sitemaps you have available:

    http://www.mysite.com/forum/sitemap_index.xml.gz

  10. #10
    Senior Member
    Real Name
    Art
    Join Date
    Nov 2006
    Posts
    150
    Liked
    2 times
    Thanks alot for your help Keith. I'm looking at Yahoo and I'm guessing I need to do the same thing.

  11. #11
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    13 times
    Yes, but be sure to submit the Yahoo sitemap file (urllist.txt.gz)

  12. #12
    Senior Member
    Real Name
    Art
    Join Date
    Nov 2006
    Posts
    150
    Liked
    2 times
    I submitted sitemap_index.xml.gz is that not correct?

  13. #13
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    13 times
    No, that's the Google sitemap. Until some type of universal standard is agreed upon, they will be two different formats.

  14. #14
    Senior Member
    Real Name
    Art
    Join Date
    Nov 2006
    Posts
    150
    Liked
    2 times
    Hmm, O.K., so is urllist.txt.gz the generic name of the file or will it be specific to my site...similar to www.mysite.com? I don't see where this file would be located as opposed to the google sitemap...

  15. #15
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    13 times
    http://www.mysite.com/forum/urllist.txt.gz

    If you go to your sitemap menu, select Show Reports List, and click View Details beside the latest entry, it will show you the sitemaps there. You can right-click and copy shortcut to get the URL to submit.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Another sitemap question
    By gedsta in forum General Discussion
    Replies: 5
    Last Post: 12-20-2006, 02:28 PM
  2. Configuring VBSEO Sitemap .htaccess with VBSEO
    By sinjix_media in forum Custom Rewrite Rules
    Replies: 2
    Last Post: 12-19-2006, 06:44 PM
  3. .htaccess question
    By Aneurysm in forum General Discussion
    Replies: 1
    Last Post: 12-05-2006, 02:55 PM
  4. vBSEO 3.0.0 RC3 & vBSEO Sitemap 1.7 question
    By Lian in forum General Discussion
    Replies: 2
    Last Post: 07-15-2006, 04:52 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
  •