# העברת פורום phpBB3 ל-Discourse

**URL:** <https://meta.discourse.org/t/migrate-a-phpbb3-forum-to-discourse/30810>\
**Category:** Migrating to Discourse\
**Tags:** how-to\
**Created:** [5 ביולי,‏ 2015,‏ 10:02pm UTC](https://meta.discourse.org/t/migrate-a-phpbb3-forum-to-discourse/30810 "2015-07-05T22:02:57Z")\
**Posts on this page:** 1\
**Showing post:** 807

<div class="post-metadata">

**Author:** ![MichaIng](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/michaing/32/251089_2.png) [@MichaIng](https://meta.discourse.org/u/MichaIng)\
**Post date:** [2 בספטמבר,‏ 2025,‏ 11:27pm UTC](https://meta.discourse.org/t/migrate-a-phpbb3-forum-to-discourse/30810/807 "2025-09-02T23:27:39Z")

</div>

You mean at `/admin/site_settings/category/all_results` search for `permalink_redirects`? That setting does not exist for me.

But `permalink_normalizations` sort of works, using `/^forum\/(view.*)/\1`:

- All phpBB links begin with `view`, like `viewtopic.php` and `viewforum.php`. Actually those seem to be the only two URLs migrated in our case, so the regex could be hardened, or split into two for full path matching.
- So that regex (`sed` syntax) takes all URLs which start with `/forum/view`, and removes the `forum/` part.

Now we only need to redirect all `/phpbb/` (our old forum path) to `/forum/` at the webserver (or Cloudflare in our case) and Discourse does the remains. Should have found this ~3 years ago, instead of breaking all backlinks 🥲.

But let me know where this `permalink_redirects` is supposed to be, maybe it requires a plugin, or was part of the phpBB import plugin or so?

EDIT: Works well:

```console
root@micha:~# curl -IL https://dietpi.com/phpbb/viewtopic.php?p=46083
HTTP/2 301
location: /forum/viewtopic.php?p=46083

HTTP/2 301
location: https://dietpi.com/forum/t/is-there-a-simple-launch-page-for-dietpi/11237/1
x-discourse-route: permalinks/show

HTTP/2 200
x-discourse-route: topics/show

```

First redirect `/phpbb` =\> `/forum` happens at Cloudflare via redirect rule, to keep trivial load away from our origin. Second redirect to actual topic is done at Discourse via permalink, removing the leading `forum/` via permalink normalization, to match the permalinks added by the phpBB import plugin, which contain neither old nor new forum sub directory path.

---

_[View the full topic](https://meta.discourse.org/t/migrate-a-phpbb3-forum-to-discourse/30810)._
