Forums

Join
bbPress Support ForumsTroubleshootingAdvanced 301 technique

Info

Tags

Advanced 301 technique

  1. As some of you know, I migrated my forum from SMF to bbPress. This caused a lot of broken URLs that Google is now returning as 404 pages in my Google webmaster tools account.

    While analyzing on how to 301 all the old links, I discovered that bbPress took the existing topic id’s and patched that to the new URLS, e.g:
    domain/index.php?topic=270 became domain /topic.php?id=270
    domain/index.php?topic=200 became domain/topic.php?id=200

    Is there a way to redirect all old pages, to the new ones giving the old id’s to the new ones? Apart from creating a big ass list.

  2. Absolutely, you can edit your htaccess file to automatically rewrite the URLs using regular expressions:
    http://www.yourhtmlsource.com/sitemanagement/urlrewriting.html#usingregularexpressions

  3. Thank you.

  4. You must log in to post.