CMS Development

adriansfdev
Member

Flexible pattern URL redirect

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 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} 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?

0 Upvotes
2 Replies 2
adriansfdev
Member

Flexible pattern URL redirect

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/

0 Upvotes
evaldas
Guide | Platinum Partner
Guide | Platinum Partner

Flexible pattern URL redirect

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

 


✔️ Did this post help answer your query? Help the community by marking it as a solution.

0 Upvotes