Announcement

Collapse
No announcement yet.

redirects from vb4 to vb5 upgrade

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • redirects from vb4 to vb5 upgrade


    Hello,

    I recently completed an upgrade from 4.2.2 to 5.5.6 on a test board. Everything seems to work fine so we will be doing this to our live board next week.

    One thing we noticed is how different the URL structure is. Here are a couple examples:

    Subforum

    Code:
    vb4: https://www.mysite.com/myforum/new-members-introduce-yourself
    vb5: https://www.mysite.com/myforum/forum/lets-talk/new-members-introduce-yourself

    Post

    Code:
    vb4: https://www.mysite.com/myforum/lets-talk/greetings-all-199608.html
    vb5: https://www.mysite.com/myforum/forum/main-topics/lets-talk/114089-greetings-all
    A couple questions:

    1) Can I remove "forum" from the URL? It's a bit odd to have /myforum/forum/
    2) How can I redirect my old vb4 URLs to the new vb5 URLs?

    Just to note, I've tried uncommenting the redirect section in htaccess:

    #If you used friendly urls in vB4, then uncommenting the following rules will redirect the #
    #old vB4 urls to a similar location in vB5. This is unnecesary for a new vB5 install.
    RewriteRule ^threads/.* showthread.php [QSA]
    RewriteRule ^forums/.* forumdisplay.php [QSA]
    RewriteRule ^members/.* member.php [QSA]
    RewriteRule ^blogs/.* blog.php [QSA]
    RewriteRule ^entries/.* entry.php [QSA]
    But my posts still aren't being redirected. I just get "Invalid Page URL." on old URLs.

  • #2
    Your old URLS are not vBulletin 4 URLS. That is they are not URLs that would be created by default without using a Third-Party Product. These custom URLs will not be redirected. You will need to create custom rewrites to redirect them to a format that vBulletin understands. Most likely those redirects already exist in your old .htaccess file.

    The "forum" in your example vBulletin 5 URL reflects the Forum channel that is the parent of your specific sub-channel. vBulletin 5 was really designed to provide the content management for an entire site, including the home page. However, you can edit the individual URLs for each channel in Site Builder. Go to the forum channel on the front-end (where it lists all the topics) and click Edit Page. Save the page and in the Save dialog, you can edit the page URL. Simply remove /forum/ from that. vBulletin will change the URL and create a 301 redirect so it can handle the change.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment


    • #3
      Originally posted by Wayne Luke View Post
      Your old URLS are not vBulletin 4 URLS. That is they are not URLs that would be created by default without using a Third-Party Product. These custom URLs will not be redirected. You will need to create custom rewrites to redirect them to a format that vBulletin understands. Most likely those redirects already exist in your old .htaccess file.
      Oh, I had no idea. But now I see the active plug-in for friendly URLs.

      Thanks.

      Comment

      Related Topics

      Collapse

      Working...
      X