Results 1 to 7 of 7
  1. #1
    Join Date
    Apr 2005
    Posts
    392
    Plugin Contributions
    0

    Default Does Anyone has the Custom 404 Error Mod.?

    Gooday,

    Does anyone has or know where I can download the custom 404 error mod. that was mentioned in one of the archived articles? TIA.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Does Anyone has the Custom 404 Error Mod.?

    It's now built-in to Zen Cart v1.3
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Apr 2005
    Posts
    392
    Plugin Contributions
    0

    Default Re: Does Anyone has the Custom 404 Error Mod.?

    Thanks for the info. DrBtye,

    I tried testing it by keying in a non-existent file at the URL and the page displayed was plain white with the following text:

    Not Found
    The requested URL /testing.php was not found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
    Apache/1.3.37 Server at www.example.com Port 80
    I was expecting to see the "No Found..." text displayed within the site's layout. Is there something I miss?
    TIA.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Does Anyone has the Custom 404 Error Mod.?

    You will still have to adjust your own .htaccess file to trigger the Zen Cart not-found page.
    An example may be found in the /extras folder as a reference point.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Apr 2005
    Posts
    392
    Plugin Contributions
    0

    Default Re: Does Anyone has the Custom 404 Error Mod.?

    Thanks once again.

    I'm using
    Code:
    getenv ("REQUEST_URI")
    to capture URL that generated the 404 error but all it captured thus far was:
    /index.php?main_page=page_not_found
    Would you mind letting me know which PHP pre-defined variable should I utilize instead? TIA.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Does Anyone has the Custom 404 Error Mod.?

    You are making it way too complicated.

    Requested:
    You are wanting to have a customized 404 page that points to your Zen Cart page-not-found area.

    Answer:
    Follow the instructions in the example .htaccess file in the /extras folder:
    /extras/htaccess_for_page_not_found_redirects.htaccess

    The file says this:
    Code:
    # replace www.MYSITE.COM with your website address.
    # be sure to add any extra paths required to locate the index.php
    # then relocate this file to the root of your store's folders, and rename it as .htaccess
    
    ErrorDocument 404 http://www.MYSITE.COM/index.php?main_page=page_not_found
    So ... following those instructions, you would:
    1. replace MYSITE.COM with the URL of YOUR website
    2. rename the file to .htaccess
    3. move the file to the root of your site.

    It's that easy.

    Now, whenever someone hits a non-existent page such as
    http://www.WHATEVERYOURSITEIS.com/badpagename ,
    they will be redirected to your page_not_found page within your Zen Cart site.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Apr 2005
    Posts
    392
    Plugin Contributions
    0

    Default Re: Does Anyone has the Custom 404 Error Mod.?

    I suppose i did.
    Thanks DrByte.

 

 

Similar Threads

  1. v139h Has anyone used the Google + mod?
    By kevinmc3 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 23 Feb 2012, 08:27 PM
  2. custom 404 error when changing the admin name
    By ray-the-otter in forum General Questions
    Replies: 6
    Last Post: 26 Oct 2010, 12:14 PM
  3. Hello Anyone has a search tagcloud mod?
    By adam9110 in forum All Other Contributions/Addons
    Replies: 15
    Last Post: 28 May 2009, 08:43 AM
  4. Replies: 2
    Last Post: 17 Dec 2007, 07:26 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg