Regex Help
-
In WordPress general settings My site is set to: WordPress Address (URL) https://www.mywebsite.com Site Address (URL) https://www.mywebsite.com Permalink settings: Post name - https://www.mywebsite.com/sample-post/ In Redirection "site" settings I selected "Don't set a preferred domain" I moved my site from Blogspot.com around 11 years ago. The blogspot permalinks were: www.mywebsite.com/yyyy/mm/my-post.html My current redirect for the old blogspot format is: source = ^/\d{4}/\d{2}/(.*).html$ target = https://www.mywebsite.com/$1/ I've used the official AMP plugin, AMP for WP, and AMP Ninja, but not for several years, and currently use the following redirects: source = ^/(.*?)/amp/$ target = https://www.mywebsite.com/$1/ source = ^/(.*?)/amp$ target = https://www.mywebsite.com/$1/ source = ^/(.*?)/\?wpamp$ target = https://www.mywebsite.com/$1/ source = ^/(.*?)/\?amp$ target = https://www.mywebsite.com/$1/ Along with those I have some redirects from old "deleted" posts to new post, and from tags to categories and categories to tags. In Google Search Console, indexing > pages, I have 3.84k pages not indexeed. 2,144 of those are "page with redirect." That's reduced from 5000+ over the last couple of years, but Google reports new problems every 3 - 4 days. I've changed the redirect several times over the year or so, most recently just a few days ago, and using the https://redirect.li/ checker I though I had finally cracked it, until Search Console updated and reported the same persistent errors. Those errors iclude, page with redirect: https://www.mywebsite.com/my-post https://www.mywebsite.comm/my-post//1000 https://www.mywebsite.com/my-post/1000 https://www.mywebsite.com/my-post// https://www.mywebsite.com/amp/?wpamp https://www.mywebsite.com/?p=12345 In some cases https://www.mywebsite.com/my-post/ is simply https://www.mywebsite.com/my On click from Search Console, they all redirect to the canonical url. Before I try again, is there something about the redirects that is obvioulsly worong?
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Regex Help’ is closed to new replies.