solution for .php braking millions of links to our pages?

Rob Kaper cap at capsi.com
Wed Feb 5 13:07:04 UTC 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday February 5 2003 1:39 pm, Rainer Endres wrote:
> Is there any solution for the problem of the .php ending breaking all the
> links to our pages out there?
>
> Any comaptibility pages for a limited time planned?

Add something like

$redirectURL = "";
if (strstr($REQUEST_URI, ".html"))
	$redirectURL = str_replace(".html", ".php", $REQUEST_URI);

if ($redirectURL)
{
	header("Location: $REQUEST_URI);
	exit();
}

to the top of our 404 handling page.

Rob
- -- 
Rob Kaper      | From the mountains, to the prairies         ***** =========
capzilla.net   | To the oceans, white with foam              ***** =========
unixcode.org   | GOD BLESS AMERICA                           ===============
the-amazing.us | My home sweet home                          ===============
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+QQx8tppIl2G1SjcRAtv0AKCfUJBFBpJ8idOtdR7xkOmhm3xBXACfUyqY
f+nM42sOOzxwhkKzRmu4tUo=
=BupR
-----END PGP SIGNATURE-----



More information about the kde-www mailing list