mod_rewrite means you can redirect the .php page to something else if you stop using php.

Unless mod_rewrite is disabled, because it has had a few security bugs over the years. Like last year. [0]

[0] https://nvd.nist.gov/vuln/detail/CVE-2024-38475