Results 1 to 3 of 3

Code in sitemap instructions differs slightly from vBSEO htaccess file?

This is a discussion on Code in sitemap instructions differs slightly from vBSEO htaccess file? within the General Discussion forums, part of the vBSEO Google/Yahoo Sitemap category; In the instructions for installation of the sitemap it gives this as the code for the htaccess: RewriteEngine On RewriteRule ...

  1. #1
    MTD
    MTD is online now
    Senior Member
    Real Name
    Mike
    Join Date
    Apr 2008
    Posts
    142
    Liked
    0 times

    Code in sitemap instructions differs slightly from vBSEO htaccess file?

    In the instructions for installation of the sitemap it gives this as the code for the htaccess:

    RewriteEngine On
    RewriteRule ^((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    In parenthesis it says existing vBSEO users can skip this step. But I looked at my existing htaccess file and this line of code is slightly different:

    RewriteEngine On
    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    Notice the "_" after sitemap. Is that supposed to be there?

    Thanks!

  2. #2
    vBSEO Staff Andrés Durán Hewitt's Avatar
    Real Name
    Andrés Durán
    Join Date
    Jul 2009
    Location
    Costa Rica
    Posts
    3,393
    Liked
    411 times
    Blog Entries
    1
    Hi Mike,

    That underscore just makes the rule a bit more strict, not a big deal, but it will still work (the .* part means any character that does appear 0 or more times, and it does include alphanumeric characters, symbols [underscore included], etc.).
    Andrés Durán / Crawlability Inc.
    ˇvBSEO 3.6.0 GOLD Liberado!
    Inaugurando el NUEVO vBSEO Sitemap Generator 3.0. - ˇAHORA disponible para Clientes de vBSEO!

    Síguenos en: Facebook | Síguenos en: Twitter


  3. #3
    MTD
    MTD is online now
    Senior Member
    Real Name
    Mike
    Join Date
    Apr 2008
    Posts
    142
    Liked
    0 times
    Thanks for the explanation Andrés! I went ahead and removed the underscore just to be safe (probably was on there since '08).

Similar Threads

  1. Replies: 2
    Last Post: 09-10-2011, 01:11 PM
  2. htaccess differs in 3.2.0 then 3.1.0
    By Julio in forum Custom Rewrite Rules
    Replies: 4
    Last Post: 07-06-2008, 01:42 AM
  3. sitemap and .htaccess file
    By frank678 in forum General Discussion
    Replies: 1
    Last Post: 03-03-2008, 01:51 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
  •