There is a code that redirects from http://site.ru/system/user.php to http://site.ru/user.php:
RewriteEngine on RewriteRule ^system/user\.php$ /user.php [R=301]
The problem is this: when it redirects to user.php
, it shows 404 not found
that the page does not exist, although in reality this is system/user.php
. How to fix?