Can anyone please tell me the redirection code in php and html. I want my root/index.php to be redirected to root/directory/index.php.
Put this in your root/index.html or /index.php HTML <meta HTTP-EQUIV="REFRESH" content="0; url=http://www.whatever.com/directory/index.php"> Code (markup): PHP <? header("HTTP/1.1 301 Moved Permanently"); header("Location: http://www.whatever.com/directory/index.php"); exit; ?> Code (markup):
Oops I guess I havent redirected anything for awhile [/giving advice for stuff I havent known for awhile]
Coolalex - that scared me ... you just made me go check all my redirects to make sure they're weren't 401s! Then I came back here and read saadahmed007s reply