I need to redirect some of my html pages to corresponding php pages.
That means if a user comes from any referring site to my http://www.example.com/sample.html page, he should be redirected to the http://www.example.com/sample.php page without showing the html page.
I need to do this for 3 pages. How can I do this ? Please help me 🙂
You can use .htaccess file for redirecting you file properly with
include cose in .htaccess
RewriteEngine on
RewriteRule ^(.*).html$ $1.php
or in other way
use php like
echo “window.location=’\www.example.com/sample.php’\”;
Hope i will help you in better way