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

Neil Stevens neil at qualityassistant.com
Wed Feb 5 13:17:58 UTC 2003


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

On Wednesday February 05, 2003 05:07, Rob Kaper wrote:
> 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.

Won't work.  You don't check for the existance of the php file, leading to 
a confusing 404 of a php file of someone honestly requests a non-existant 
html file.

- -- 
Neil Stevens - neil at qualityassistant.com
"Distinctions by race are so evil, so arbitrary and insidious that a
state bound to defend the equal protection of the laws must not allow
them in any public sphere." -- Thurgood Marshall
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+QQ8Hf7mnligQOmERAnYeAKCbYG1kmbK0XHFBWlS5gBUAFowykQCglOwu
6xdkW2zCqUoVzcKOMzcbGjU=
=HJdB
-----END PGP SIGNATURE-----




More information about the kde-www mailing list