@darrion.kuhn
To redirect a PHP page using .htaccess, you can use the following code in your .htaccess file:
1 2 |
RewriteEngine On RewriteRule ^old-page.php$ /new-page.php [L,R=301] |
In this code:
Make sure to replace old-page.php
with the actual filename of the old PHP page and new-page.php
with the actual filename of the new PHP page.
Save the .htaccess file and upload it to the root directory of your website. When someone tries to access the old PHP page, they will be automatically redirected to the new PHP page.