My old domain is not 301 redirecting to new domain after 15 days of Migration?

15 day ago, I migrated my WordPress site from old domain to new domain. And I migrated successfully.

I added these line of code for the redirection: -

#Options +FollowSymLinks

RewriteEngine on
 RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=301,L]

everything was working fine but after 15 days when I type in old URL in Google then It shows me error 22.

Did you keep the old domain active on the web host?
Personally I would forward at the domain level, not using htaccess.

Try adding your URL here without a leading http://, www, etc

http://supiet2.tk/?

Selecting verbose:

http://mechaplanet.org
Download: 3.557 secs filesize():  89,636 bytes
 
get_headers($url)  ==> 

Array
(
    [0] => HTTP/1.1 301 Moved Permanently
    [1] => Server: nginx/1.14.0
    [2] => Date: Thu, 09 Aug 2018 16:00:50 GMT
    [3] => Content-Type: text/html; charset=iso-8859-1
    [4] => Connection: close
    [5] => Location: http://beginnersblog.org/
    [6] => Vary: Accept-Encoding
    [7] => HTTP/1.1 200 OK
    [8] => Server: nginx/1.14.0
    [9] => Date: Thu, 09 Aug 2018 16:00:54 GMT
    [10] => Content-Type: text/html; charset=UTF-8
    [11] => Connection: close
    [12] => Expires: Thu, 19 Nov 1981 08:52:00 GMT
    [13] => Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
    [14] => Pragma: no-cache
    [15] => Link: ; rel="https://api.w.org/", ; rel=shortlink
    [16] => Set-Cookie: PHPSESSID=1de4bc80767f02b21bd20442ccf40ebc; path=/
)

```

Download: 0.118 secs filesize(): 0 bytes

Invalid URL ???

hey, I have already solved the problem. Thanks for your support and reply…

Care to share your soluton which could be useful for others with a similar problem?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.