How to redirect the page

Now I'm using WordPress to develop this domain: greenpro.co.th
But the company just decide to use another domain : greenproksp.com
to be the main domain, how I can transfer the wordpress content to the new main domain or is there other way can easiler to do it? Thanks.

  • James Morris
    • WordPress Enthusiast

    Hello Easy

    It sounds like you've developed the site originally on greenpro.co.th but they now want to use the domain greenproksp.com. If that is the case, the following docs from WordPress Codex will be most helpful.

    https://codex.wordpress.org/Moving_WordPress

    If the domain is relatively new and has not had any traffic, just moving the domain will be sufficient. If the domain has some age and search engine results listings, then you'll want to add a .htaccess define to redirect the traffic from the old domain to the new domain. Something like the following should be sufficient.

    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^example.com [NC,OR]
    RewriteCond %{HTTP_HOST} ^www.example.com [NC]
    RewriteRule ^(.*)$ http://example.net/$1 [L,R=301,NC]

    Hope this helps!

    Best regards,

    James Morris

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.