SMRTR ProgrammingMay 31, 2026Go Make Things

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
SMRTR Programming

Get the next batch of curated summaries in your inbox.

This archive is built from SMRTR newsletter summaries. Subscribe for hand-picked stories without the extra noise.