Domain Redirection Using a PHP Script
Q. How do I redirect my domain name using a php server side scripting under Apache web server?
A. Under PHP you need to use header() to send a raw HTTP header.
If you want to redirect a domain to some other URL, you can use the PHP script as below
See PHP Redirect To Another URL / Page Script FAQ for further information.Share this tutorial on:
Your support makes a big difference:
I have a small favor to ask. More people are reading the nixCraft. Many of you block advertising which is your right, and advertising revenues are not sufficient to cover my operating costs. So you can see why I need to ask for your help. The nixCraft, takes a lot of my time and hard work to produce. If you use nixCraft, who likes it, helps me with donations:
Become a Supporter → Make a contribution via Paypal/Bitcoin →
Don't Miss Any Linux and Unix Tips Get nixCraft in your inbox. It's free: