Check our WordPress 101 & 201 FREE Video Tutorials here
Jump to content
alex.panagis

[Rank Math SEO Plugin] How to setup permalink structure redirections?

Recommended Posts

How can I set a redirect up like this?

Source: /%year%/%monthnum%/%day%/%postname%/

Destination: /%postname%/

For when I changed permalinks. It doesn't work for some reason.

Share this post


Link to post
Share on other sites

Hello,

Thank you for contacting MyThemeShop and sorry for any inconvenience that might have been caused due to that.

Can you please flush the permaURLs cache by saving the permalink setting again?

If that doesn't help, please send us the .htaccess rules in the sensitive area before we provide you with the Regex code for creating a redirection.

Looking forward to helping you.


🏁Rank #1 on Google With our WordPress SEO Plugin

Score a 💯on PageSpeed and Dominate Search Rankings.

✏ Editing theme files? Please create a child theme to make your changes update-proof.

Share this post


Link to post
Share on other sites

Hello,

To redirect month/year permalink to post, please set ([0-9]{4})\/([0-9]{2})\/(?!page\/)(.+)$ in source and your_site_url/$3 in destination and set Redirection type to regex.

Hope that helps. Thank you.


🏁Rank #1 on Google With our WordPress SEO Plugin.

Score a 💯on PageSpeed and Dominate Search Rankings.

✏ Editing theme files? Please create a child theme to make your changes update-proof.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×