I need to redirect all queries to file 1.php to file 2.php. So I need if somebody will ask 1.php server will give him 2.php. 1.php and 2.php are in the same folder.
RewriteEngine On
RewriteRule ^2.php 1.php
This code in htaccess doesn’t work. Where is the mistake?
Try this: