<HTML dir=ltr><HEAD><TITLE>Re: [pmwiki-users] Mediawiki to PmWiki migration - how to preserve old links</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.2900.2523" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr><FONT size=2><FONT face="Courier New">Ignore last, sent too soon!</FONT></FONT></DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr><FONT size=2><FONT face="Courier New">Patrick R. Michaud wrote:<BR></FONT><FONT face="Courier New">> I'd do it with a special-purpose php script.<BR></FONT><FONT face="Courier New">> <?php<BR>> $title = @$_REQUEST['title'];<BR>> $title = str_replace('_', '', $title);<BR>> header("Location: </FONT><A href="https://mail.ngms.eu.com:2000/exchweb/bin/redir.asp?URL=http://scoobypedia.co.uk/enginuity/index.php/Enginuity/$title" target=_blank><FONT face="Courier New">http://scoobypedia.co.uk/enginuity/index.php/Enginuity/$title</FONT></A><FONT face="Courier New">");</FONT></FONT></DIV>
<DIV dir=ltr>
<P><FONT size=2><FONT face="Courier New">Andrew wrote:</FONT></FONT></P>
<P><FONT face="Courier New" size=2>> </FONT><FONT face="Courier New"><FONT size=2>You should also send the proper HTTP response header, it won't make much<BR>> difference for normal users, but for search engines will now that the<BR>> new location is the same page (keeping it's page rank) rather than<BR>> reindexing it as a new page (starting with a 0 page rank).<BR>> <BR>> If the location is permanent use:<BR>> header('HTTP/1.1 301 Moved Permanently');<BR>> or if it's only a tempory location use:<BR>> header('HTTP/1.1 307 Temporary Redirect');</FONT></FONT></P>
<P><FONT face="Courier New"><FONT size=2>Yet again you guys have come up with the goods. PmWiki [community] rocks! I'll have a play with what you have said.</FONT></FONT></P>
<P><FONT face="Courier New"><FONT size=2>Thanks Patrick and Andrew,</FONT></FONT></P>
<P><FONT face="Courier New"><FONT size=2>-Steve.</FONT><FONT></P></FONT></FONT></DIV></BODY></HTML>