Static to WP migration – good but getting 404s
-
I have a strange problem and wonder if someone can advise, please?
[WP 5.0.4 PHP 7.2]
I have just migrated my website from a static site to WP and am using the same URL, with WP established in a separate folder.
The usual ‘copy index.php and .htaccess’ into the ROOT was done together with a small change to the ROOT index.php .
require(‘./wp-blog-header.php’)
was changed to
require(‘./subdirectory/wp-blog-header.php’)
I manually added 301 redirects in .htaccess for the old site urls to new site urls and they tested fine.
Everything is working beautifully – I am totally stunned by it.
However, when I run a link checker I am getting a strange set of 404s reported.
Each WP page is sending out a 301 and pointing to the URL with the subdomain included.The source link text is showing as correct Permalink
{domain} / { correct WP part}
but is being seen as
{domain} / {subfolder} / { correct WP part} and gets a 404.
I have run Permalink, cleared local caches and Cloudflare many times but the problem remains.
I also temporarily removed all of my own 301 redirects from the .htaccess file so that WP only saw what it created.
https://www.deadlinkchecker.com reports
Status: 404
URL: {domain} / {subfolder} / { correct WP part}
Source Link Text : “Link Text [ 301 from {domain} /{ correct WP part}]”It is really strange because the site works so well! Is this a real problem which will affect SEO of just a literal interpretation by the link checkers?
Your wise guidance will be really appreciated !
- The topic ‘Static to WP migration – good but getting 404s’ is closed to new replies.