<?php\n/**\n * Plugin Name: Archi Simple - Legacy dated post URL redirects\n * Description: 301 redirect for dated WordPress article URLs after migration to short slugs.\n */\nadd_action('template_redirect', function () {\n    if (is_admin() || wp_doing_ajax()) return;\n    $path = (string) wp_parse_url($_SERVER['REQUEST_URI'] ?? '', PHP_URL_PATH);\n    if (!preg_match('~^/(\d{4})/(\d{2})/(\d{2})/([a-z0-9][a-z0-9-]*)/?$~i', $path, $parts)) return;\n    $post = get_page_by_path(sanitize_title($parts[4]), OBJECT, 'post');\n    if (!$post || $post->post_status !== 'publish') return;\n    if (get_post_time('Y/m/d', false, $post) !== $parts[1].'/'.$parts[2].'/'.$parts[3]) return;\n    $target = get_permalink($post);\n    if ($target) wp_safe_redirect($target, 301, 'Archi Simple permalink migration');\n    if ($target) exit;\n}, 1);\n<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//archi-simple.com/wp-content/plugins/wordpress-seo/css/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://archi-simple.com/post-sitemap.xml</loc>
		<lastmod>2026-11-17T16:29:42+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://archi-simple.com/page-sitemap.xml</loc>
		<lastmod>2026-10-20T09:38:15+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://archi-simple.com/category-sitemap.xml</loc>
		<lastmod>2026-11-17T16:29:42+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://archi-simple.com/post_tag-sitemap.xml</loc>
		<lastmod>2026-11-17T16:29:42+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://archi-simple.com/author-sitemap.xml</loc>
		<lastmod>2026-04-21T12:02:12+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Yoast SEO -->