bspacer1 bspacer2
webmail hosting forum clients about

Computer Co-op, CornerNET Internet Gateway, and PJR Solutions is owned by PJR Sales & Service. Quality products and online services since 1991. We can be your
Complete Computer Connection

Hosting @ $5.95

Domains @ $16.98
Home PagePortal HomeClient AreaAnnouncementsKnowledgebaseSupport TicketsDownloadsRegister

Knowledgebase
You are here: Portal Home > Knowledgebase > cPanel Related Issues > cPanel common questions and problems > PHP and HTML redirects

PHP and HTML redirects

If you do not wish to use the .htaccess file to redirect your visitors, you can use another option - a PHP or an HTML file which will perform the actual redirection. Below are examples for both programming languages:

For PHP, create a file (index.php for example) and add the following lines in it:

<?php
header( 'Location: http://www.yoursite.com/redirect_location' ) ;
?>


For HTML, create a file (index.html for example) with the following content:

<META HTTP-EQUIV="Refresh"
CONTENT="0; URL=http://www.yoursite.com/redirect_location">


Here you have the option to delay the redirect by increasing the CONTENT variable. For example CONTENT=5 will delay the redirect for 5 seconds.



Was this answer helpful?

Add to Favourites
Print this Article

Also Read
PHP and HTML redirects (Views: 8474)
When I select Site Software from cPanel I get a message that says "No cPAddons configuration found. Please contact your host and ask that they configure cPAddons." (Views: 11691)
I am having problems with my cronjob and/or it is not working (Views: 3785)
My redirection set from cPanel shows an error (Views: 1923)
Can I have more than one login for my cPanel? (Views: 2960)

Powered by WHMCompleteSolution


Copyright © 1994-2021 PJR Sales and Service All Rights Reserved