When WooCommerce checkout redirects to homepage, shoppers click Checkout and land on your front page instead of the payment form. This guide helps you identify which redirect you have, then fix page assignment, permalinks, custom rules, caching and plugin conflicts one at a time.
Each step is quick to test. Work through them in order, change one thing at a time, and use a staging copy for anything that touches code or server files.
Work Out Which Redirect You Are Dealing With
Three different behaviours get mixed up, and each has its own fix.
| What shoppers see | Usual meaning | Where to go |
|---|---|---|
| Checkout sends them to the homepage | Checkout page not assigned, or a rule sends traffic away | The sections on page assignment, permalinks, custom rules and caching |
| Checkout sends them to the cart with a notice | The cart is empty, which is normal behaviour | Add a product and retry |
| Add to cart sends them to the cart | A cart redirect setting | The cart redirect settings section at the end |
Read the redirect in the Network tab
Open your browser developer tools, switch to the Network tab and tick the option to preserve the log. Add a product, click Checkout, then find the first request with a 301 or 302 status. Its Location header shows where shoppers are sent, for example a 302 to your homepage URL.
Check the WooCommerce logs
Look under WooCommerce > Status > Logs for recent errors from checkout or payment plugins. Logs only help if something wrote an entry, so an empty log does not rule anything out.

Assign the Cart and Checkout Pages Correctly
If the Checkout page is unassigned, deleted or set to the wrong page, the Checkout link can end up on the homepage. This is a common cause and takes a minute to check, so start here.
Set the Checkout page in Page setup
- Go to WooCommerce > Settings > Advanced.
- In the Page setup section, choose your Checkout page and your Cart page.
- Click Save changes.
Check the shortcodes and publish status
Open Pages and confirm both pages are Published, not Draft or Private. The cart page should contain and the checkout page .
Some themes and extensions only partly support the Checkout block. If checkout misbehaves, replace the block with a Shortcode block holding . If the pages are missing, create new ones with those shortcodes and assign them, rather than guessing.

Reset Permalinks and Check Checkout Endpoints
Broken endpoints or stale rewrite rules can make a /checkout/ request resolve to the wrong place.
Confirm the endpoints
Go to WooCommerce > Settings > Advanced and look at the checkout endpoint fields in Page setup. Blank or altered values can break the flow. If they look wrong, restore the defaults, which are normally order-pay and order-received, then save.
Re-save permalinks
- Go to Settings > Permalinks.
- If it is not already set, choose Post name, which is the
/%postname%/structure. - Click Save Changes without editing anything else.
Saving regenerates the rewrite rules. Retest checkout in a fresh private window straight afterwards.
Hunt Down Custom Redirect Rules and Code
If the settings are correct, something is probably sending a 302 for /checkout/ or /cart/. Change only one thing at a time so you know what fixed it.
.htaccess and server-level redirects
Back up .htaccess, then search it for any Redirect or RewriteRule matching /checkout/. One reported case on WordPress.org was a rewrite rule sending that URL to another page. Also check any redirect manager plugin.
Must-use plugins and custom code
Look in wp-content/mu-plugins and any snippets for functions hooked to template_redirect or wp_redirect that send users to home_url(). To find the culprit, enable WP_DEBUG_LOG, then add this to a child theme functions.php or a snippets plugin on staging:
add_filter( 'wp_redirect', function ( $location, $status ) {
$uri = isset( $_SERVER['REQUEST_URI'] ) ? wp_unslash( $_SERVER['REQUEST_URI'] ) : '';
if ( false !== strpos( $uri, '/checkout' ) ) {
error_log( sprintf(
'Checkout redirect to %s (%d) via: %s',
$location,
$status,
wp_debug_backtrace_summary()
) );
}
return $location;
}, 10, 2 );
Visit checkout, then read wp-content/debug.log. The backtrace names the plugin or theme file. Remove the snippet when you are done.
Catalog Mode in theme settings
Some themes include a Catalog Mode or shop-disabling option that turns off cart and checkout and sends visitors elsewhere. Look through your theme options and any theme-bundled WooCommerce settings, switch it off, and retest checkout.
Rule Out Caching, Sessions and Plugin Conflicts
A cached redirect can keep sending shoppers to the homepage long after you fix the cause.
Exclude checkout from caching and CDNs
In your caching plugin and any CDN, exclude the cart, checkout and my-account pages. For Cloudflare, one guide suggests setting Bypass Cache on Cookie to woocommerce* and disabling caching for /checkout/* and /cart/*. Then purge all caches.
Clear sessions and test for conflicts
- Go to WooCommerce > Status > Tools and run the tool that clears customer sessions.
- Clear your browser cache and server cache.
- Deactivate non-WooCommerce plugins one by one, retesting checkout after each.
- If that changes nothing, switch to a default WordPress theme and retest.
Test each change in a private window while logged out. Many caching setups skip logged-in admins, so a fix can look like it works for you while shoppers still get redirected.



