alex.panagis Posted February 22, 2019 Report Share Posted February 22, 2019 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. Link to comment Share on other sites More sharing options...
Support Montgomerie Posted February 22, 2019 Support Report Share Posted February 22, 2019 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. Link to comment Share on other sites More sharing options...
alex.panagis Posted February 22, 2019 Author Report Share Posted February 22, 2019 The site is hosted on a pure Nginx server. Would adding this Nginx rule work? rewrite "/([0-9]{4})/([0-9]{2})/([0-9]{2})/(.*)” https://themainframe.ch/$4 permanent; Link to comment Share on other sites More sharing options...
Support Pratik.d Posted February 22, 2019 Support Report Share Posted February 22, 2019 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. Link to comment Share on other sites More sharing options...
Recommended Posts