.htaccess » Why is ?doing_wp_cron being added to my URLs

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.

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>

See also  Change logo on WordPress login page without using any plugin

Was this post helpful?

Leave a Comment

I enjoy constructive responses and professional comments to my posts, and invite anyone to comment or link to my site.

Recommended