# Digital Ocean 中使用 Nginx 重定向 URL

**URL:** <https://meta.discourse.org/t/redirect-url-with-nginx-in-digital-ocean/235297>\
**Category:** Self-hosting\
**Created:** [2022 年8 月 6 日 09:10 UTC](https://meta.discourse.org/t/redirect-url-with-nginx-in-digital-ocean/235297 "2022-08-06T09:10:28Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

作者： ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
发布日期： [2022 年8 月 6 日 21:47 UTC](https://meta.discourse.org/t/redirect-url-with-nginx-in-digital-ocean/235297/13 "2022-08-06T21:47:57Z")

</div>

> [@Alshain](#):
>
> 非常感谢您的帮助。有超过 150,000 个问题，我不想全部看完 ☹

那么您需要修改导入脚本，或者请人修改导入脚本来创建永久链接。您试图做的事情是不可能的。主题 ID 都不同。如果您现在已经有用户在使用社区，那么您要么运气不好，要么需要放弃他们的帖子。

哦。抱歉。`import_ids` 应该在数据库中。您可以编写一个脚本来创建永久链接。您需要查看一些其他的导入脚本，找一个在导入主题后而不是在导入主题函数中创建重定向的脚本。

---

_[View the full topic](https://meta.discourse.org/t/redirect-url-with-nginx-in-digital-ocean/235297)._
