View Single Post
  #630  
Old 03-03-2012, 12:57 PM
  Mr. G's Avatar 
Mr. G Mr. G is offline
 

eXpert
  
Join Date: Nov 2010
Posts: 386
 

Thumbs up Re: Custom custom ;) 404 error page

Quote:
Originally Posted by torbenbendixen
When the CleanURLs are enabled, the <xcart-dir>/dispatcher.php script handles the '404 Page not found' errors. In this case the error message page is returned by the "func_page_not_found" function which can be found in the <xcart-dir>/include/func/func.core.php script.

In order to make it so that the custom pages of the 'Custom_404_Page' module will be shown, you must add the code below to the beginning of the "func_page_not_found" function in the <xcart-dir>/include/func/func.core.php script:
Code: text
if (is_readable($xcart_dir . '/your-404-error-filename.php')) {
func_header_location('your-404-error-filename.php');
}

That did the trick for me.
Yes, finally, that is the solution. It's working for me. (I'm getting the 404 page inside the Smart Template skin.) Thanks!!!!!!
__________________
4.7.6 Gold Plus
XCartMods.co.uk Ultra Template
X-Cart Abandoned Cart
BCSE PayPal DPM
CDSEO Pro 2.1.8
BCSE Drop Shipper Pro
Google Rich Snippets
Time and money-saving tips I've learned as a webstore owner at http://ShoppingCart-Program.com
Reply With Quote