<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>
<P><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></P>
<P><FONT size=2><FONT face="Courier New">Andrew wrote:</FONT></FONT><FONT size=2><FONT face="Courier New">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');<BR><BR><BR>Andrew<BR></P></FONT></FONT></BODY></HTML>