?doing_wp_cron, Why is ?doing_wp_cron being added to my URLs
?doing_wp_cron, Why is ?doing_wp_cron being added to my URLs

Why is ?doing_wp_cron being added to my URLs

Find out why is ?doing_wp_cron being appended to your URLs in WordPress

Simply said, It’s a sign that you have ALTERNATE_WP_CRON defined in your wp-config.php

In order to do some background processing (like publishing scheduled posts), WordPress redirects you to the URL with ?doing_wp_cron appended.

This is usually triggered by backup plugins such as UpDraft backups or All-In-One WP Migration.

If you want to disable this, simply open your  wp-config.php file and delete the line containing ALTERNATE_WP_CRON

Another way to hide this is by managing redirection in the .htaccess file.

<IfModule mod_rewrite.c>
    Options +FollowSymLinks
    RewriteEngine On
    RewriteCond %{QUERY_STRING} (^|&)doing_wp_cron= [NC]
    RewriteRule (.*) /$1? [R=301,L]
</IfModule>

This can also be triggered because of an alternate cron job. To work around this, if you have access, you can enable an actual cron process (if your hosting will let you) and disable ALTERNATE_WP_CRON in your wp-config.php.

Hope this will help!

Add comment

Do you have a
WordPress problem?

Select what best describes your goals:

Cart

HOLD ON!

Do you have a
WordPress problem?

Become a WordPress Pro
with our easy to follow guides .

Hire an Expert to quickly solve
any WordPress related task.

We use cookies to provide an awesome experience on our website. By continuing to use this site, you agree to our tasty cookies.
🍪 Accept Cookies
Privacy Policy