/**
 * Soft-404 cleanup: permanent redirects for retired default WP URLs.
 * Keeps Google Search Console "Not found (404)" from lingering after Sample Page / Hello World.
 */
add_action('template_redirect', static function (): void {
    if (is_admin() || wp_doing_ajax() || wp_doing_cron()) {
        return;
    }

    $path = isset($_SERVER['REQUEST_URI']) ? (string) wp_parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) : '';
    $path = untrailingslashit(strtolower($path)) . '/';
    if ($path === '//') {
        $path = '/';
    }

    $map = [
        '/sample-page/' => home_url('/'),
        '/hello-world/' => home_url('/'),
        // Hostinger temporary hostname (if Google still has it)
        // handled only when this install is on blog.egitim.today
    ];

    if (!isset($map[$path])) {
        return;
    }

    wp_safe_redirect($map[$path], 301);
    exit;
}, 1);
<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//blog.egitim.today/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://blog.egitim.today/post-sitemap.xml</loc>
		<lastmod>2026-08-24T15:14:48+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://blog.egitim.today/page-sitemap.xml</loc>
		<lastmod>2026-08-18T12:21:28+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://blog.egitim.today/podcast_episode-sitemap.xml</loc>
		<lastmod>2026-08-24T15:00:14+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://blog.egitim.today/category-sitemap.xml</loc>
		<lastmod>2026-08-24T15:14:48+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Rank Math SEO Plugin (c) Rank Math - rankmath.com -->