Redirection problem

I have used this permalink structure for my articles
mysiteurl.com/article/post-name
for all of my articles.
But I have moved to mysiteurl.com/post-name on yesterday
How to set up an auto redirection for all.

Use this line in yor .htaccess file
RedirectMatch 301 ^/article/$ https://mysiteurl.com/?p=$
make sure you change website URL with yours. I made this using tool https://yoast.com/research/permalink-helper.php
it helped me change my post url in one click which I migrated from blogger

2 Likes

Thanks @Ajay_Malik

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.