WordPress background processing tasks such as publishing scheduled posts, backups or auto-updates may append ?doing_wp_cron to your URLs.
Most common plugins that cause this issue are: All-In-One WP Migration and UpDraftPlus Backups.
Disable doing_wp_cron in URL using wp-config.php
To remove ?doing_wp_cron from URLs using the wp-config.php file simply edit the file and remove the line containing:
ALTERNATE_WP_CRON
Disable doing_wp_cron in URL using .htaccess
You can also create a rewrite rule that will remove ?doing_wp_cron from URLs:
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{QUERY_STRING} (^|&)doing_wp_cron= [NC]
RewriteRule (.*) /$1? [R=301,L]
</IfModule>
Was this post helpful?
Let me know if you liked the post. That’s the only way I can improve. 🙂