Forum

How to redirect URLs?

guest
22 November 2007, 11:36
How can hostnames be redirected?

ex. www.example.com --> example2.com
Hugo Leisink
22 November 2007, 11:49
It's not something Hiawatha can do. I believe a webserver shouldn't do things which can easily be done via CGI. To redirect hostnames, simply let a CGI program print a Location HTTP header line. Example in PHP:
<?php
header("Location: http://example2.com/");
?>
This topic has been closed.