Regex Redirect Rule Generator — illustrative example INPUT Apache 2.4, document-root .htaccess with mod_rewrite enabled. Redirect /articles/example to /blog/example temporarily while testing. Preserve the remaining path; /products/example must not match. RESULT RewriteEngine On RewriteRule ^articles/(.+)$ /blog/$1 [R=302,L] Expected matches: /articles/example → /blog/example /articles/team/update → /blog/team/update Nonmatches: /products/example and /blog/example. Use the temporary status during testing; choose the final migration status after verification. REVIEW Test rewrite rules against both expected matches and URLs that must remain unchanged. Server syntax and redirect behavior differ across environments. This is a teaching example, not a live execution record.