Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

404.html Not Working Rate Topic   - - - - -

 
  • venomxr
  • Member
  • Trial users
  • Join Date: 05-Nov 11
  • 36 posts

Posted 14 January 2015 - 10:15 AM #1

Hi guys,

I've been working on this custom 404 Error page for days and i can't seem to get it to work.
I have created a 404.html file which i then uploaded to the my public/html folder in cpanel along with the image that goes with it. I then entered the code ErrorDocument 404 /404.html up the very top of my .htaccess page and i still can't get the page to work.

I also tried using this code....

if ($status == CONTROLLER_STATUS_NO_PAGE) {
fn_redirect(Registry::get('config.http_location') . "/404.html");
}

in the fn.control.php file but still no success.
Not sure what's going on but it really is doing my head in as I am trying to do an SEO audit on my page and Google are really strict with 404 pages.

THis is the error i am getting on my screen when i try to test the 404.

No controllers for: _no_page

Thanks guys.

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 20788 posts

Posted 14 January 2015 - 12:13 PM #2

Do you know that custom 404 page can be created by the built-in block manager?

http://demo.cs-cart....cted_location=2
GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • venomxr
  • Member
  • Trial users
  • Join Date: 05-Nov 11
  • 36 posts

Posted 14 January 2015 - 12:43 PM #3

Is that available in version 3.0?
I've got the page all set but just wont work

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 20788 posts

Posted 14 January 2015 - 01:40 PM #4

Is that available in version 3.0?
I've got the page all set but just wont work


I have just checked 3.0.6 version and this location exists there. Try to replace your current .htaccess file with the default one
GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • venomxr
  • Member
  • Trial users
  • Join Date: 05-Nov 11
  • 36 posts

Posted 14 January 2015 - 06:48 PM #5

Where do I find the default .htaccess file? Thanks

 
  • venomxr
  • Member
  • Trial users
  • Join Date: 05-Nov 11
  • 36 posts

Posted 15 January 2015 - 08:54 AM #6

Why is it that when i type a fake url that ends in .jpeg my 404error page works fine yet when it ends in .html it gives me a "no controllers for page" ?

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 20788 posts

Posted 15 January 2015 - 09:29 AM #7

Where do I find the default .htaccess file? Thanks


Please try

DirectoryIndex index.html index.php
<IfModule mod_rewrite.c>
RewriteEngine on
# Pleas note that RewriteBase setting is obsolete use it only in case you experience  some problems with SEO addon.
# Some hostings require RewriteBase to be uncommented
# Example:
# Your store url is http://www.yourcompany.com/store/cart
# So "RewriteBase" should be:
# RewriteBase /store/cart
# RewriteBase /
RewriteCond %{REQUEST_FILENAME} !\.(png|gif|ico|swf|jpe?g|js|css)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php?sef_rewrite=1 [L,QSA]
</IfModule>

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • venomxr
  • Member
  • Trial users
  • Join Date: 05-Nov 11
  • 36 posts

Posted 15 January 2015 - 09:54 AM #8

i added the code into my .htaccess but no good.
I have both my 404html and the png image that goes with it in the public/html in cpanel along with my .htaccess file.

I'm not a coder or computer expert so I do apologize of any stupid questions or answers

 
  • venomxr
  • Member
  • Trial users
  • Join Date: 05-Nov 11
  • 36 posts

Posted 16 January 2015 - 01:55 PM #9

Still can't get this 404 error page to work. I don't know what made me do it, however when i clicked my url.jpeg my 404 error page worked great but typing anything causes and it just turn into a blank white page with the "no_controllers for this page" message up the top.My url is uniqueautoart.com for those who want to try it.

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 20788 posts

Posted 16 January 2015 - 02:07 PM #10

It is required to examine the issue directly on your server. Please contact CS-Cart support team
GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)