404 search

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Givemeurcookies
Forum Newbie
Posts: 2
Joined: Wed Sep 01, 2010 2:51 pm

404 search

Post by Givemeurcookies »

I'm currently using Wordpress on my website. And i wanted to make a little more out of the 404 page, When a user get a 404 they obviously searched for something that wernt found. So i wanted to make a "related search" in that 404, that uses the WP search, so lets say... I write in "http://ramenstudios/blog/something" the 404 page appears, and then the website suggests related posts in that website that has the same name or term that was searched for in the URL. Like when you type in something in the search and the website suggests stuff that contains that word/letters, just that in this instance Its the URL "/something" that it will search for. I thought that this will remove the bounce rate that i get from the links that get an 404 error (file not found), since i changed the permalink structure of my website, and i still have many of the old links linking to a error page.

One more note is this... /highschool-of-the-dead-characters-495
The permalink is setup /%post-name%%postID%
the old Permalink was... /2010/06/13/prototype/
The setup was /%postdate%%postname%

Thats it! Thanks in advance!
Post Reply