Forums / All Other Contributions/Addons / ceon uri mappin and custom 404 in htcaccess, back button gets sent to page not found

ceon uri mappin and custom 404 in htcaccess, back button gets sent to page not found

Started by bangsters on 16 Jun 2012, 5:12 AM · Views: 1,300

Results 1 to 4 of 4
16 Jun 2012, 5:12 AM
#1
bangsters avatar

bangsters

Zen Follower

Join Date:
Jun 2006
Posts:
168
Plugin Contributions:
0

ceon uri mappin and custom 404 in htcaccess, back button gets sent to page not found

Hi.

I just found a very unusual error.

We have modified our .htaccess file to accommodate a custom 404 error: ErrorDocument 404 /404error.php.

We have CEON URI Mapping installed as well.

The problem we are encountering is if you go to any link in the INFORMATION sidebox (conditions, shipping, etc), the back button redirects to the page_not_found of zencart. Even if I don't click the back button and just hovers my mouse on top, the link shows index.php?main_page=page_not_found.

How exactly is the "back" button coded to get the previous URL? I don't think adding an errordocument in htaccess should affect it. But for some reason, if I remove the 404 error document in the htaccess file, the back button works fine.

Any ideas??

16 Jun 2012, 1:39 PM
#2
bangsters avatar

bangsters

Zen Follower

Join Date:
Jun 2006
Posts:
168
Plugin Contributions:
0

Re: ceon uri mappin and custom 404 in htcaccess, back button gets sent to page not found

bump anyone else having the same issue?? Not sure if this is CEON specific. But one thing for sure, if I remove the custom error page in my htaccess file, everything works ok.

How exactly is the value of BACK button being defined??

16 Jun 2012, 4:18 PM
#3
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,131
Plugin Contributions:
56

Re: ceon uri mappin and custom 404 in htcaccess, back button gets sent to page not found

The Back button's value/link is *usually *set by the function zen_back_link, present in /includes/functions/functions_general.php.

16 Jun 2012, 4:28 PM
#4
bangsters avatar

bangsters

Zen Follower

Join Date:
Jun 2006
Posts:
168
Plugin Contributions:
0

Re: ceon uri mappin and custom 404 in htcaccess, back button gets sent to page not found

Fixed it. I think CEON is making changes to the $link value. Since the HTTP REFERER has a correct value.

I just made a small change and set a value for $link if it had the page_not_found value.

Hope this helps others with the same issue