# שאלה נוספת על Permalink - שימוש ב- regex

**URL:** https://meta.discourse.org/t/another-permalink-question-using-a-regex/336603
**Category:** Support
**Created:** [17 בנובמבר,‏ 2024,‏ 2:31pm UTC](https://meta.discourse.org/t/another-permalink-question-using-a-regex/336603 "2024-11-17T14:31:07Z")
**Posts on this page:** 4
**Page:** 2

<div class="post-metadata">

### Author: ![yigit](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yigit/32/350861_2.png) [@yigit](https://meta.discourse.org/u/yigit)
#### Post date: [19 בנובמבר,‏ 2024,‏ 7:40am UTC](https://meta.discourse.org/t/another-permalink-question-using-a-regex/336603/23 "2024-11-19T07:40:56Z")

</div>



---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [19 בנובמבר,‏ 2024,‏ 3:37pm UTC](https://meta.discourse.org/t/another-permalink-question-using-a-regex/336603/25 "2024-11-19T15:37:56Z")

</div>

Glad you got it! If I’d done your migration all of those links would still work.

What you really want to do is to add a permalink for `/questions/stop-syncing` that points to the new topic – [Stop Syncing - General Questions - Exalate](https://community.exalate.com/t/stop-syncing/4503)

But if you’re lucky, and the slugs match, you can make your permalink work for most of them. Something like:

```plaintext
/questions\/\d*?(.*)/t/-/\1

```

(I can never quite remember exactly how and when to escape those slashes, but that might be right) should make

URLs like `https://community.exalate.com/questions/20123204/stop-syncing` turn into `/t/-/stop-syncing`, which will work for most of them. Sometimes the old slug and the Discourse slug might not match up. You can ignore those or create permalinks for those.

---

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [19 בנובמבר,‏ 2024,‏ 3:42pm UTC](https://meta.discourse.org/t/another-permalink-question-using-a-regex/336603/26 "2024-11-19T15:42:25Z")

</div>

> [@francis\_exalate](#):
>
> have been on the old community but have been migrated

When I first read this I read it as “not been migrated”.

If you have a list of old/new URLs, you can create all those permalinks.

We can help you load that directly on the backend if you want.

---

<div class="post-metadata">

### Author: ![francis\_exalate](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/francis_exalate/32/461390_2.png) [@francis\_exalate](https://meta.discourse.org/u/francis_exalate)
#### Post date: [19 בנובמבר,‏ 2024,‏ 3:51pm UTC](https://meta.discourse.org/t/another-permalink-question-using-a-regex/336603/27 "2024-11-19T15:51:54Z")

</div>

> [@supermathie](#):
>
> If you have a list of old/new URLs, you can create all those permalinks.
> 
> We can help you load that directly on the backend if you want.

That’s also interested - thanks for the offer.  
Let me check if we can get this to you easily.

[Previous page](https://meta.discourse.org/t/another-permalink-question-using-a-regex/336603.md?page=1)
