macdesign
Sep 27th 2004, 9:19 pm
I'm not sure what the right term is, but I've created hundreds of "redirect:" pages that are place holders for content not created. These pages are created by programming, [and each one redirects to a different place] but they are uploaded as static pages.
They are pages with
<META HTTP-EQUIV="Refresh" CONTENT="5; URL=http:.......
Now what I want to do is replace my custom 404 not found page for the site, with a PHP page, that will somehow pick up the URL string that the browser tried to go to, and dynamically decide what page it should go to, and create the redirect on the fly.
Now I keep meaning to learn PHP, so I might as well start someplace. I've no idea how I find what the original target URL was.
My concern is that if I by mistake I redirect to another page not found, then I could get caught in an endless loop.
They are pages with
<META HTTP-EQUIV="Refresh" CONTENT="5; URL=http:.......
Now what I want to do is replace my custom 404 not found page for the site, with a PHP page, that will somehow pick up the URL string that the browser tried to go to, and dynamically decide what page it should go to, and create the redirect on the fly.
Now I keep meaning to learn PHP, so I might as well start someplace. I've no idea how I find what the original target URL was.
My concern is that if I by mistake I redirect to another page not found, then I could get caught in an endless loop.