Info
- 3 posts
- 2 voices
- Started 2 years ago by chandersbs
- Latest reply from chandersbs
- This topic is resolved
Advanced 301 technique
-
- Posted 2 years ago #
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=200Is 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.
-
- Posted 2 years ago #
Absolutely, you can edit your htaccess file to automatically rewrite the URLs using regular expressions:
http://www.yourhtmlsource.com/sitemanagement/urlrewriting.html#usingregularexpressions -
- Posted 2 years ago #
Thank you.
-
You must log in to post.