Please ! give me source code about redirect domain

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
donggiagia
Forum Newbie
Posts: 1
Joined: Thu Oct 10, 2002 9:17 pm
Location: Viet Nam
Contact:

Please ! give me source code about redirect domain

Post by donggiagia »

Thanks for reading this news !

I have a domain. I want plug-in a index.php file to redirect and fix bug 404.
Ex: At address of IE : I type: " http://www.vntoday.org/index.php . after, index.php can auto go to main.html. In this example, this index.php can fix 404 bug when my domain's busy or bug. My domain can into. This index.php can redirect to # domain (Ex: vietnamnet.info).

Okie, thanks you so much. see your answer soon !
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Have a look at the header() function, it can be used to redirect from one page to another:
http://www.php.net/manual/en/function.header.php

Mac
Post Reply