Skip to content

Tag: mod-rewrite

Customize URL rewriting with htaccess

I have the following in my htaccess: It works perfectly, the question is whether it would also be possible to automatically redirect it to the new path when the PHP file is accessed directly? For example: example.com/pwreset.php >> example.com/reset-password There are several pages, so I needed somethin…