# Permalink.createがアラビア語のスラッグで動作しません！

**URL:** <https://meta.discourse.org/t/permalink-create-not-working-with-arabic-slug/264509>\
**Category:** Migration\
**Tags:** bbpress\
**Created:** [2023 年 5 月 10 日午前 8:48 UTC](https://meta.discourse.org/t/permalink-create-not-working-with-arabic-slug/264509 "2023-05-10T08:48:20Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![hiccup](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hiccup/32/141306_2.png) [@hiccup](https://meta.discourse.org/u/hiccup)\
**Post date:** [2023 年 5 月 10 日午前 8:48 UTC](https://meta.discourse.org/t/permalink-create-not-working-with-arabic-slug/264509/1 "2023-05-10T08:48:20Z")

</div>

こんにちは

単純に、私の古いbbpressはIDではなく、アラビア文字のスラッグのみを使用していました。` /post-title` のような形式です。

そのため、`Permalink.create(url: '/Arabic-title', topic_id: 3708),` を使用しようとすると、Permalinkは作成されますが、リンクが機能せず、存在しないというリンクが表示されます。

 ![2023-05-10_11-33-10](https://global.discourse-cdn.com/meta/original/4X/4/7/8/4788a58b7ae789d2f6ef8682ce3517d23c7e0286.jpeg)

問題は、インターネット上にアラビア語のスラッグを使用した12,000以上のリンクがあり、これらのバックリンクをすべて失いたくないことです。

現在、古いサーバーで `htaccess` を使用して `301(/Arabic-title TO newdiscourse/t/topic_id )` にリダイレクトしていますが、12,000のリンクがあるため、ファイルサイズが2MBになり、301リダイレクトが遅くなるのではないかと心配していますが、すべて正常に機能しています。

何か提案はありますか？

---

_[View the full topic](https://meta.discourse.org/t/permalink-create-not-working-with-arabic-slug/264509)._
