// Noindex goods.php and detail pages add_action('send_headers', function() { $uri = $_SERVER['REQUEST_URI']; if (strpos($uri, 'goods.php') !== false || strpos($uri, '/detail/') !== false) { header('X-Robots-Tag: noindex, nofollow', true); } });

Hello world!

Welcome to WordPress. This is your first post. Edit or delete it, then start writing!