Thread: 404

Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2006
    Location
    Austin, TX
    Posts
    84
    Plugin Contributions
    2

    Default 404

    I just want to make a simple 404 page that redirects to the home page after about 5 seconds. And though I have a test document called 404.html, and I've added

    ErrorDocument 404 /404.html

    to my .htaccess file, I can't seem to bypass the built-in zen cart 404 functionality. Can anyone help me out? Thank you in advance for your time.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,376
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: 404

    Zen Cart has built-in page-not-found handling which by default takes the customer to either the home page or the page_not_found page, which contains a site-map style listing of navigation links.

    If you want to alter that behaviour to go to a specific "different" place, try this:

    1. Admin->Configuration->My Store->Missing Page Check ... set to page-not-found

    2. edit /page_not_found.php and change this:
    Code:
    header("Location: index.php?main_page=page_not_found");
    to this:
    Code:
    header("Location: 404.html");
    (or whatever alternate place you want it to go to)
    .

    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
    Jun 2006
    Location
    Austin, TX
    Posts
    84
    Plugin Contributions
    2

    Default Re: 404

    I've tried that too, no dice.

    I'm using dreamscape's seo urls, 3.0 beta 1. It's the only thing that I can think of that could be making a difference.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,376
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: 404

    Quote Originally Posted by zforrest View Post
    I'm using dreamscape's seo urls, 3.0 beta 1. It's the only thing that I can think of that could be making a difference.
    Well .... does turning off the SEO mod solve the problem ?
    .

    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.

 

 

Similar Threads

  1. Replies: 3
    Last Post: 20 Sep 2014, 07:15 PM
  2. 404 error
    By dparbhoo in forum General Questions
    Replies: 3
    Last Post: 19 Jan 2011, 05:56 PM
  3. no 404 page
    By jgdovin in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 4 Aug 2009, 11:59 PM
  4. 404 error
    By buchli in forum General Questions
    Replies: 1
    Last Post: 19 Jul 2006, 01:40 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR