• hi,

    I moved my blog from one domain to a new one, everything working perfect i did all changes in database for internal links, images…
    The only problem i could not find a solution for is permalinks, i had permalinks type: /%year%/%monthnum%/%day%/%postname%/ on the old domain and i use only : /%postname%/ on the new one.
    using simple redirect : Redirect 301 / https://www.new__domain.com/ result in 404 page error because of permalink changes, which is normal, but i don’t know what code should i use in .htaccess file?

    Thank you very much for your help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Somethink like this:

    RewriteEngine On
    RewriteRule ^/(.*)/(.*)/(.*)/(.*)/$ /$4/ [L]

    But in this version of the title post should clearly match

    Thread Starter chillmen

    (@chillmen)

    Hi Domino_ukraine, Thank you for your help, but this solution is not working.

    Oh, accurately, and to add a new domain, I forgot …

    RewriteEngine On
    RewriteRule ^old-site.com/(.*)/(.*)/(.*)/(.*)/$ new-site.com/$4/ [L]

    Try it? if it still actually ??

    Thread Starter chillmen

    (@chillmen)

    Thanks Domino_ukraine, but links have moved to new domain alrady ?? Thank you for help anyway

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Moving wordpress to a new domain using different permalinks’ is closed to new replies.