Page 2 of 2 FirstFirst 1 2
Results 16 to 30 of 30
Like Tree3Likes

Renamed Category and forums - redirect

This is a discussion on Renamed Category and forums - redirect within the General Discussion forums, part of the vBulletin SEO Discussion category; Tags working perfectly, thanks a lot !! But I don't understand what the first line does: Code: '^f([0-9]+)/i([0-9]+)\.html$' => 'f$1/index$2.html' ...

  1. #16
    Member WiseHYIP's Avatar
    Real Name
    Mike
    Join Date
    Oct 2010
    Location
    Belgium
    Posts
    51
    Liked
    19 times
    Tags working perfectly, thanks a lot !!

    But I don't understand what the first line does:

    Code:
    '^f([0-9]+)/i([0-9]+)\.html$' => 'f$1/index$2.html'
    Code:
    '^f22/(.*)\.html$' => 'f22/$1/'
    ^^This works for one forum, is there an option to do this in one line for all my forums?

    Is there not a way to redirect all .html to / ?

  2. #17
    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
    Quote Originally Posted by WiseHYIP View Post
    Tags working perfectly, thanks a lot !!

    But I don't understand what the first line does:

    Code:
    '^f([0-9]+)/i([0-9]+)\.html$' => 'f$1/index$2.html'
    That rule redirects the 'Forum Pagination' pages from the old format to the new one.

    Quote Originally Posted by WiseHYIP View Post
    Code:
    '^f22/(.*)\.html$' => 'f22/$1/'
    ^^This works for one forum, is there an option to do this in one line for all my forums?
    You don't need to use that one.
    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. #18
    Member WiseHYIP's Avatar
    Real Name
    Mike
    Join Date
    Oct 2010
    Location
    Belgium
    Posts
    51
    Liked
    19 times
    Code:
    '^f([0-9]+)/i([0-9]+)\.html$' => 'f$1/index$2.html'
    '^tags/(.*)\.html$' => 'tags/$1/'
    '^blogs/(.*)\.html$' => 'blogs/$1/'
    '^content/(.*)\.html$' => 'content/$1/'
    '^(.*)\.html$' => '$1/'
    This seems to work am I doing it correctly?

    Code:
    '^f([0-9]+)/i([0-9]+)\.html$' => 'f$1/index$2.html'
    '^(.*)\.html$' => '$1/'
    This seems to work even better

  4. #19
    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
    Looks fine, but I'm wondering what's supposed to do the last one?.
    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


  5. #20
    Member WiseHYIP's Avatar
    Real Name
    Mike
    Join Date
    Oct 2010
    Location
    Belgium
    Posts
    51
    Liked
    19 times
    The last one changes everything from .html to /

    Example:
    http://www.website.com/tags/elite.html -> becomes -> http://www.website.com/tags/elite/
    http://www.website.com/content/elite.html -> becomes -> http://www.website.com/content/elite/
    http://www.website.com/blogs/username/test.html -> becomes -> http://www.website.com/blogs/username/test/

    it works everywhere so I don't need to adjust it for each forum manually

    It does exactly what I needed, because Google was linking everything to -> .html and now it redirects to my new stucture.

    so basically there is nowhere in my forum now the .html at the end and it seems to be working perfectly and if someone links or uses his bookmark to the old structure with .html at the end it redirect nicely.

    Thanks a million time !

  6. #21
    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
    If you don't face issues, then, go ahead.
    Last edited by Andrés Durán Hewitt; 10-09-2011 at 10:20 PM.
    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


  7. #22
    Member WiseHYIP's Avatar
    Real Name
    Mike
    Join Date
    Oct 2010
    Location
    Belgium
    Posts
    51
    Liked
    19 times
    can I now also change the website.com to www.website.com with these redirect rules?

    non-www to www.

  8. #23
    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
    [How to] Setup www.yourdomain.com or yourdomain.com (www vs. non-www) - With .htaccess 301 redirects

    You may enable the RewriteRules included with the vBSEO default .htaccess
    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


  9. #24
    Member WiseHYIP's Avatar
    Real Name
    Mike
    Join Date
    Oct 2010
    Location
    Belgium
    Posts
    51
    Liked
    19 times
    Okay it seems like I do get one error now: When a Forum has more then 1 page it links to index.html and thus I cannot visit this page because of the redirect

    I have changed back to the previous version. (only content/blog & tags)

  10. #25
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    that last rule is very generic and is likely the problem. what is your exact pagination format?

  11. #26
    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
    Quote Originally Posted by WiseHYIP View Post
    Okay it seems like I do get one error now: When a Forum has more then 1 page it links to index.html and thus I cannot visit this page because of the redirect

    I have changed back to the previous version. (only content/blog & tags)
    That's why I asked you for different URLs format. As Brian said, your last one rewrite rule tries to cover many areas, and would be hard for it not conflicting with anything.
    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


  12. #27
    Member WiseHYIP's Avatar
    Real Name
    Mike
    Join Date
    Oct 2010
    Location
    Belgium
    Posts
    51
    Liked
    19 times
    what is your exact pagination format?
    Where can I find this?

    That's why I asked you for different URLs format.
    I'm afraid to ask but hey I'm just not seeing it.. :$ where exactly did you ask this and what do you mean by different URLs formats?

  13. #28
    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
    Hello Mike,

    As I can see, you want to redirect a few URLs to a new format you have defined. I took a look at your site and I saw the old format and the new format for "forum pagination" pages, and tag pages, so that's why I supplied a couple redirects. You tried to cover all of that URL using simply one redirect.

    Quote Originally Posted by WiseHYIP View Post
    I'm afraid to ask but hey I'm just not seeing it.. :$ where exactly did you ask this and what do you mean by different URLs formats?
    Apologies for that, I thought I did it, but it doesn't happened. To redirect URLs for forums with more than a page and tag pages, I supplied a couple redirects, but you insisted in using a single redirect.

    Now, starting from scratch, what URLs do you want to redirect to new format?. Please provide example URLs for old and new formats, for better assistance.
    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


  14. #29
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    Just go to page 2 of one of your threads and paste in the link.

    ie, this is

    f4/renamed-category-forums-redirect-10175/index2.html

  15. #30
    Member WiseHYIP's Avatar
    Real Name
    Mike
    Join Date
    Oct 2010
    Location
    Belgium
    Posts
    51
    Liked
    19 times
    Quote Originally Posted by Andrés Durán Hewitt View Post
    Hello Mike,

    Apologies for that, I thought I did it, but it doesn't happened. To redirect URLs for forums with more than a page and tag pages, I supplied a couple redirects, but you insisted in using a single redirect.

    Now, starting from scratch, what URLs do you want to redirect to new format?. Please provide example URLs for old and new formats, for better assistance.
    I've seen that nothing is in Google anymore so therefore I don't really need the extra links anymore, I'm going to leave it now like you suggested the first time.

    I shall be waiting until Google indexes me again, seems like the Webmaster Tools is having some problems.

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. ability to remove category pages from archive
    By dcallan in forum vBSEO Features Archive
    Replies: 3
    Last Post: 07-25-2006, 07:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •