[kdewebdev-site] HTML->PHP
Joff
ffoj at flashgranny.co.uk
Thu Feb 24 11:27:29 EST 2005
On Thursday 24 February 2005 10:49, Andras Mantia wrote:
> On Thursday 24 February 2005 12:40, Joff wrote:
> > turn the old page into a blank page with a meta refresh in the head
> > (the latter is better for search engines as they /should/ update your
> > listing in them with the new link)
> >
> > ideally, there should be a 301 redirect (permanently moved) header
> >
> > :):)
>
> Can you give some examples with such "redirecting" files?
<?php
header("HTTP/1.1 301 moved permanently");
header ("Location: http://www.uri-here.com");
header("Connection: close");
?>
or
<meta http-equiv='refresh' content='0;URL=http://www.uri-here.com' />
in the head of an html page, where '0' is the number of seconds delay before
redirecting to the new page
or
Redirect permanent /index.html /index.php
in the .htaccess
Joff
More information about the kdewebdev-site
mailing list