| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
[Solved] How to change the forward address on page errors? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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. |
|||||||
#2
|
|||||||
|
|||||||
![]() 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:
I'm sure by now, it's obvious that you can redirect to anywhere you like. Piper |
|||||||
|
|||
X-Cart forums © 2001-2020
|