RewriteEngine On

# Redirect /blog and its subpaths to /news while preserving the path
RewriteRule ^blog/(.*)$ /news/$1 [R=301,L]

# MkDocs fallback rules
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ / [R=301,L]
