Wordpress URL Redirectin Fo Old To New Domain

I moved my old wordpress site to a new [NEW - SOJUOPPA.GQ] domain from the old one [OLD - SOJUOPPA.NET] and i tried redirecting my old URL to the ne on ebut its not working ..,,its only the homepage that is redirecting ..old posts URL are not redirecting..Pls How am i going to fix that

  • Ash
    • WordPress Hacker

    Hi there

    Please try the following in your htaccess:

    RewriteEngine On
    
    RewriteCond %{HTTP_HOST} ^(www\.)?old-domain\.com$ [NC]
    RewriteRule ^ http://new-domain.com%{REQUEST_URI} [R=301,L,NE]

    Replace old and new domain in the above code :slight_smile:

    Hope it helps! Please feel free to ask more questions if you have any.

    Have a nice day!

    Cheers,
    Ash

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.