Announcement

Collapse
No announcement yet.

Redirect old URLs to vBulletin 5 URLs

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

  • Redirect old URLs to vBulletin 5 URLs

    Hello, everyone!

    I am migrating an existing forum (Phorum) to vBulletin 5.
    In one of the steps, I created a mapping of important URLs. When I say "important URLs", I mean forums and threads addresses. Other URLs are not important.

    Example:

    Forums

    /forum/forumname1-i101.html (old) => /forum/forumname1 (vB5)
    /forum/forumname2-i102.html (old) => /forum/forumname2 (vB5)

    Threads

    /forum/forumname1/thread1-101,1001.html (old) => /forum/forumname1/1001-thread1 (vB5)
    /forum/forumname1/thread2-101,1002.html (old) => /forum/forumname1/1002-thread2 (vB5)
    /forum/forumname2/thread3-102,1003.html (old) => /forum/forumname2/1003-thread3 (vB5)

    Is something in the vBulletin 5 architecture ideal for my case or should I use other solution.

    Important detail: I have about 200 thousand redirections (200 forums and 200,000 threads).

  • #2
    You could add those rewriterules to your .htaccess file:
    Code:
    RewriteRule ^forum/([A-Za-z0-9]+)\-([A-Za-z0-9]+).html$ forum/$1 [R=301,L]
    RewriteRule ^forum/([A-Za-z0-9]+)/([A-Za-z0-9]+)\-([0-9]+),([0-9]+).html$ forum/$1/$4-$2 [R=301,L]
    Those rules will redirect your users to the new URLs.

    You could test them over here: http://htaccess.mwl.be/

    Comment

    Related Topics

    Collapse

    Working...
    X