Thanks for your reply sir.
Earlier I asked the same question (about 301 redirection) to one of my seniors in our office, and following was his reply:
"The default page for
http://www.my-medicare.com is index.php so if you type site name with or without index.php it will going to call index.php itself. The solution of redirection won't work because it will get a infinte loop of page calling and the page won't load."
Will it get in an infinite loop of page calling? Neither I understood it nor I was agreed with him. So I had to post it here.
I sent him the following codes used for redirecting? (Kindly check these codes if these will work fine or some changes are required, pls send me the changes if there is any)
301 redirect using .htaccess:
-----------------------------
redirect 301 /index.php
http://www.my-medicare.com
(without using 'http://www' in first url)
The .htaccess file would then be uploaded to the same location where we have uploaded the index page at our OLD domain that we are redirecting from.
OR
301 Redirect using PHP (by simply adding this code to the page):
---------------------------------------------
<?
header( "HTTP/1.1 301 Moved Permanently" );
header( "Location: http://www.new-url.com/" );
?>
Waiting for your reply, Sir!!!
Thanks,
Ashish