Results 1 to 17 of 17
Thread: 404 redirect page
May 21, 2001, 17:20 #1
- Join Date
- Oct 2000
- Nashvegas Baby!
- 0 Post(s)
- 0 Thread(s)
I recently rebulit one of my client sites from SSI to HP/mySQL. I just noticed that some of the SSI pages are still showing up in the search results. I would like to do a redirect from the .shtml page to the more recent .php3 page.
A sample link coming in would look like this:
and should be replaced with this:
and put inside the frameset.
I have already done this one manually. I think that this should be easy, but I am unsure of how to begin.
Let me take a stab at it and then maybe someone could correct me when needed.
I create a PHP page that reads in the page that is being accessed (what is the varible for that one?). Then I do a string replace getting rid of the .shtml extension and tacking on a .php3 one in it's place. Good so far?
I already have a page in place called frame.php3. It lets me link to a page from outside the frameset yet will drop the specified page right INTO the frameset. That little dandy will save me some serious time when send links to fans.
You can see it in action here:
So, can someone help me out?