Sinisterly
Redirecting index to another page - Printable Version

+- Sinisterly (https://sinister.ly)
+-- Forum: Design (https://sinister.ly/Forum-Design)
+--- Forum: Web Design (https://sinister.ly/Forum-Web-Design)
+--- Thread: Redirecting index to another page (/Thread-Redirecting-index-to-another-page)



Redirecting index to another page - Banadmin - 05-23-2013

PHP Code:
<?php header("Location: http:yoursiteyouwanttoredictto.com"); die(); ?>

Paste into index.php.


RE: Redirecting index to another page - Banadmin - 05-23-2013

Another method with HTML:

Code:
<html> <head> <title>Redirecting</title> <meta http-equiv="REFRESH" content="0;url=http://www.websitehere.com"> </head> <body> Redirecting, please wait. </body> </html>



RE: Redirecting index to another page - Krew - 05-23-2013

If content = 0, in the html.index then you wouldn't even see the message "Redirecting, please wait."
X_x


RE: Redirecting index to another page - Banadmin - 05-23-2013

(05-23-2013, 02:02 PM)Krew Wrote: If content = 0, in the html.index then you wouldn't even see the message "Redirecting, please wait."
X_x

It's there for learning purposes. :p