Google Search Console – Error 403
-
Hi,
For the last 5/6 weeks, I’m witnessing an increased number of “403” errors in the Google Webmaster console: https://ibb.co/chXRco
The recurring pattern seems to point at a regexp I put in the .htaccess file when I changed the permalink two years ago:
# Redirect permalink RewriteEngine on RewriteRule ^([0-9]{4})([0-9]{2})([0-9]{2})-(\d+)-([^/]+)/$ /?p=$4 [R=301,L]Basically, I redirect all the previous permalinks to the basic WordPress pageid so that WordPress can redirect to the new permalink. It might seems a bit twisted but since I had a lot of internal links prior to this change, it works just fine for old articles without having to edit all of them (800+ posts).
For example, if you take this “old” article:
https://www.digitalcine.fr/20160531-16473-fargo-saison-2-en-blu-ray-chapitre-2-sur-9/The regexp will redirect here:
https://www.digitalcine.fr/?p=16473And WordPress will then redirect to the final permalink:
https://www.digitalcine.fr/4k-bluray-dvd/tests-bluray-dvd/16473-fargo-saison-2-en-blu-ray-chapitre-2-sur-9/But when looking at the error inside the Google Search Console, the bots seem to try accessing this page:
https://www.digitalcine.fr/(%5Ba-z0-9%5C-/%5D+)/16473-fargo-saison-2-en-blu-ray-chapitre-2-sur-9Is it possible that one of the “All In One WP Security & Firewall” option (inside the .htaccess file) might be conflicting with the regexp I put in place?
Thanks a lot for your help.
Best regards,
Stephane.
The topic ‘Google Search Console – Error 403’ is closed to new replies.