About
Tool No. 93 of Pikkola, 28 November 2026
An .htaccess is applied top to bottom and a terminal rule stops the walk. This page builds the canonical host, the moved paths, the cache and the security headers, and then sends a URL through the same rules to show where it stopped.
What it does
- HTTPS and www canonicalisation
- Prefix and regex redirects with 301, 302, 307 or 308
- Expires and Cache-Control by type
- A URL walk that reports each step and the final status
Order is the only control flow
A trailing slash rule above a redirect rewrites the path the redirect was written for, so the redirect never fires. The simulator uses the file's order for that reason: the order is the part people get wrong.
A 301 is cached by strangers
Browsers and search engines keep a permanent redirect, often for months. A 302 keeps the decision open; a 301 should be written only when the old path is never coming back.
The filesystem is a fact the file cannot see
A rule that tests whether a file exists cannot be answered without the disk. The simulator assumes nothing exists but the entry file, and says so, rather than pretending to know your server.
What it is not
It does not deploy anything, does not test your server and does not know your AllowOverride. The file is text to review, and curl is the authority on what a server does with it.
Contact
A directive whose behaviour changed between Apache versions, or a rewrite that this page orders wrongly, is worth the file and the version: hello@pikkola.com.