X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   custom 404 not working (https://forum.x-cart.com/showthread.php?t=46314)

JohnHilton 03-16-2009 02:49 PM

custom 404 not working
 
I have a custom 404.php page, but testing it via a nonexistent "test.html" page leads me to the skin1 directory's HTML version. I have "ErrorDocument 404 /404.php" in the .htaccess file. The store is installed in the root directory and Clean URLs are working...

What could be the problem? Does the 404.php file need to be somewhere other than the root directory?

Thanks

Victor D 03-17-2009 12:35 AM

Re: custom 404 not working
 
404.php should be in the store root directory.
Please attach your .htaccess here for investigation

JohnHilton 03-17-2009 04:10 PM

Re: custom 404 not working
 
1 Attachment(s)
My .htaccess is attached. Oddly enough, it seems to work for "testing.php" but not "testing.html"

Thanks again.

Victor D 03-18-2009 04:42 AM

Re: custom 404 not working
 
I tested it more complex.
It is seems to be clean URL bug. Please report it to Qualiteam.
For now I can propose you to replace the line 74 of your dispatcher.php
Code:

    func_page_not_found();
with
Code:

    func_header_location('404.php', true, 404);


All times are GMT -8. The time now is 03:12 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.