![]() |
Custom 404 Error Search Page
This script is based on the search.php file in the /customer directory.
search404.php is a custom 404 error page that no site should be without. It is designed to parce the url and take the keywords that it finds and create a custom results page for your customers. For instance, say your old site had the page, www.yoursite.com/computer/printer/hp.htm. This script will take the url and create the following keywords: computer, printer, and hp. Then it will perform a custom search and the 404 error page people will see is the search results for these keywords. So, URL's that didn't exist before now exist with custom tailored results. If it finds no results, it will redirect the users to your main page (or whatever you specify). This is very good if you had old placements in search engines that you don't want to go to waste. Paste this code into a file and place it next to search.php in the /customer directory. Code:
<? |
Wow, great idea! I'll have to try it...
|
Nice script 8)
I tend to use a different error reporting script but it essentially does the same thing. |
not working
for some reason this script is not working with me
any sugestions ? |
Ok i created a file called bettersearch.php pasted the above code into it and ftp'd the file into the same directory as search.php but for some reason the new file doesn't work? how do i get it to work.
|
I'm having the same problem with this script. How do we get it to work? I don't understand how the search script knows about this file. Help?
|
Someone please help.
I would love to be able to use this script as well. |
Funkydunk,
would you be willing to share the script that you are using to acheive this effect? *We cannot get this one to work* and it's very important (for me) that our x-cart store capture all the traffic that is being achieved by our old site's Google rankings. I'd be willing to pay if you were cool with it. |
Anyone got one of these?
I will kick in some cash. It is needed now more than ever.... |
adpboss.... did you, or anyone who reads this, get this to work. If so, how?
|
http://www.adpmods.com/dogbyteman.html
NOPE. I just made a pretty 404 error page. This would have been a cool mod, but I have moved way beyond it. |
I can make it work somewhat redirecting with .htaccess containing /xcart/customer/search404.php but the page shows without pictures and formatting. If I use http://yourdomain.com/xcart/customer/search404.php as the redirect the formatting is good but the search is bad.
|
I've been trying to understand why if you use the following placed in a .htaccess file, the resulting page is without pictures, template formatting and CSS.
ErrorDocument 404 /xcart/customer/search404.php However if you use... ErrorDocument 404 http://www.yourdomain.com/xcart/customer/search404.php Everything shows perfectly. WHY? |
If I could just get an answer to the above post, I might be able to make this script work...
|
Wish I could help buddy, but this is out of my league.
|
I'm Sooooooo Close..... Yet Soooooooo Far
|
i know i am Waaaay late on this...but i got it to work by simply going into my control panel and adding a shtml redirect...
so that anytime someone goes to a page that doesnt exist, they get redirected to this new search404 and it seems to do the trick for me.... if you want to use this you will need to adjust the name/location of your search404.php file.... Code:
<HTML> ~TonyD |
Anybody ever upgraded this code to work with 4.0.x?
|
I am not sure if this will help you guys out or not.
I have done this on several sites and it seems to help. This helps to not loose to many customers and keeps them in the store. I recieved this from a friend of mine and not sure where it came from, but I know I can't take the credit for making it. Just sharing it. Hope no one minds a sizable post cause it is a bit lengthy. here goes enjoy... Code:
Well, there ya go. I am sure a lot of you already knew this, but for those who may not, now you do. 8) |
I know this is an old post, but I thoght I would add a tptal list of error pages for those that wish to use this capability in the .htaccess referral I posted above.
|
All times are GMT -8. The time now is 07:30 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.