Why is ?doing_wp_cron being added to my URLs

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.

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

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?

Leave a Reply