WordPress.org

Support

Support » How-To and Troubleshooting » Regex for Moving a Site Changing Permalink Structure

Regex for Moving a Site Changing Permalink Structure

  • Let’s say my current blog is at

    mydomain.com

    and my permalink posts are at links structured like

    mydomain.com/2005/05/03/title_something/

    I want to move my blog to a new domain – but have forwarding links in the .htaccess of the old blog so that the new links are structured like

    mynewdomain.com/archives/1/

    (using the post ID instead of the timestamp + title)

    How would I write my Redirect Rule for that?

  • The topic ‘Regex for Moving a Site Changing Permalink Structure’ is closed to new replies.
Skip to toolbar