Accredited Registrar Accredited Registrar

Frequently Asked Question

FAQ / Linux Shared Hosting


How to redirect a website with PHP?

You can redirect a website with PHP using the header() function. To setup a simple redirect, simply create an index.php file in the directory you wish to make a redirection.

< ?php header(Location: http://yourdomainname/); ?>

Note: In the above code, replace yourdomainname with your correct domain or website name.

How this faq is helpful:

Not at all
helpful
Not much
helpful
Some what
helpful
Very
helpful
Extremely
helpful

What could be better? (Optional)
X
  Not related to my issue
  Too complicated explanations
  Too much information
  Incorrect information
  Unclear information
  Incomplete information
  Too old information
Do you have any other feedback about this faq ?
1000

Related Tags :