[kdewebdev-site] HTML->PHP

Andy Pieters andy at vlaamse-kern.com
Thu Feb 24 12:17:54 EST 2005


On Thursday 24 February 2005 11: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?
>
> Andras
Hi

It can be as simple as 

<?php
$newlocation='http://xxxx.yyy.zz';
header('HTTP/1.0 301 Moved Permanently');
header("Location:$newlocation"); ?>

Just trying to help


Kind regards


Andy aka x_terminat_or_3

-- 
Registered Linux User Number 379093
Now listening to Top! Radio Live Stream
--
Feel free to check out these few
php utilities that I released under the GPL2 and 
that are meant for use with a php cli binary:
http://www.vlaamse-kern.com/sas/
--
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://momo.creolmail.org/pipermail/kdewebdev-site/attachments/20050224/c0a62932/attachment.pgp


More information about the kdewebdev-site mailing list