Hi, I'm Matt Watson

I build plugins for the WordPress publishing platform, and I write about Health, Wealth and Code. Why? Because personal, professional and web development are my passion.

Recently I was working on a WordPress Multisite instance, and I needed each site (multilingual in this instance) to have their own unique dynamically generated sitemap. I generated these sitemaps by creating virtual files within WordPress. This article shows you how to create a virtual file, and then how to ensure that that virtual file is not accessible through every site in your WordPress Multisite instance. Setting Up Rewrite Rules To create a virtual file,…