![]() |
[Solved] How to change the forward address on page errors?
I recently upgraded from v.3.1 to 3.4.4Pro. I did a total rebuild because the database structure was different. Now, my categories and product numbers are different (which is OK). However, if a user (or search engine ) had the old URL, the user is redirected to an error page (error_message.php) because the new cart does not know about the old cat numbers and product numbers.
What I would like to do is to forward the user to the home page instead of the error page. Where can I the program logic that regulates this function? This is a hot issue with us right now because we had alot of links to products from outside sites/pages. Sincerely, Piper My future goal is to go through the database and re-map the category numbers and product numbers. However, this won't happen for another week or two. |
Solution
I found the solution to my question and I thought I'd post it here in case anyone else ever has the same problem/question.
In include/func.php, do a search for "Error handeling". Replace the old 'func_header_location' with: Code:
func_header_location("home.php"); I'm sure by now, it's obvious that you can redirect to anywhere you like. Piper |
All times are GMT -8. The time now is 09:50 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.