# Flexible pattern URL redirect

**URL:** <https://community.hubspot.com/t/flexible-pattern-url-redirect/68334>\
**Category:** CMS Development\
**Tags:** looking-for-feedback\
**Created:** [November 1, 2022, 4:59pm UTC](https://community.hubspot.com/t/flexible-pattern-url-redirect/68334 "2022-11-01T16:59:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![adriansfdev](https://avatars.discourse-cdn.com/v4/letter/a/b5a626/32.png) [@adriansfdev](https://community.hubspot.com/u/adriansfdev)\
**Post date:** [November 1, 2022, 4:59pm UTC](https://community.hubspot.com/t/flexible-pattern-url-redirect/68334/1 "2022-11-01T16:59:30Z")

</div>

Hey guys!

I need to create a redirect from an existing blog wich is working correctly right now but with the “blog/” duplicated, [https://domain-test.com/blog/blog/\*rest-of-url](https://domain-test.com/blog/blog/*rest-of-url) and I need to redirect this to the same URL with only one “blog/”. This was one of my principal thouhgts [https://domain-test.com/blog/{rest-of-url}](https://domain-test.com/blog/%7Brest-of-url%7D) but it didn´t work…

I was making a lot of tests here but it seems that it can´t work with the same domain.

¿Do you guys have any idea?

---

<div class="post-metadata">

**Author:** ![evaldas](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/evaldas/32/69160_2.png) [@evaldas](https://community.hubspot.com/u/evaldas)\
**Post date:** [November 2, 2022, 6:32pm UTC](https://community.hubspot.com/t/flexible-pattern-url-redirect/68334/2 "2022-11-02T18:32:20Z")

</div>

Hi @adriansfdev

When you edit one of your HubSpot blog posts, in the “Settings” tab, do you have a “ **/blog** ” in the “ **Blog** ” field and then “ **/blog/** ” at the beggining of the “ **Content slug** ” field by chance?

 ![evaldas_0-1667413823277.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/0/f/0fb2802b146f78230fad15be16018d0be6e04760.png)

---

<div class="post-metadata">

**Author:** ![adriansfdev](https://avatars.discourse-cdn.com/v4/letter/a/b5a626/32.png) [@adriansfdev](https://community.hubspot.com/u/adriansfdev)\
**Post date:** [November 2, 2022, 11:38pm UTC](https://community.hubspot.com/t/flexible-pattern-url-redirect/68334/3 "2022-11-02T23:38:37Z")

</div>

Hi @evaldas , Yes, that’s exactly what I have on most of the URLs of all my blog posts. I am going to remove all of them, exporting the blog, removing the blog/ slug inside of “content slug” and creating a new blog to import again all the info. For finally create a redirect for all of the old blog/ duplicated URLs to the new ones only with one blog/
