Tag Info

Hot answers tagged

2

It turns out that the nginx config that W3 Total Cache inserts if Disk Enhanced mode is enabled will break permalinks, but only if you restart nginx after W3 Total Cache injects the config for Disk Enhnaced mode. Based on birgire's suggestion, I turned off all plugins and checked the site, which started working correctly. I then turned on W3 Total Cache ...


1

In functions.php function productsPageRedirect_404() { global $post; if( is_page('products') ) { global $wp_query; $wp_query->set_404(); status_header(404); } } add_action( 'wp', 'productsPageRedirect_404' );



Only top voted, non community-wiki answers of a minimum length are eligible