How to redirect if a page doesn't exist with Apache
SMRTR summary
A single `.htaccess` RewriteRule cleanly migrates ~3,000 Hugo HTML files from root to `/articles/`, preserving existing inbound links by redirecting only when files don't exist at root, without causing redirect loops.
SMRTR provides this summary for quick context. The original article belongs to Go Make Things.
Read the original article