Results 1 to 10 of 1456

Threaded View

  1. #11
    Join Date
    Nov 2003
    Posts
    783
    Plugin Contributions
    2

    Default Re: Chemo's Ultimate URL's

    Here is how you can get 404 headers to be sent. This is from the archives, so I'll post it here.

    Well first off the issue is really due to the fact that Zen Cart does not send 404 headers. If you turn SEO off or on a shop with it turned off, and you can go to index.php?main_page=gobbledeygook, you will get an HTTP 200 OK header (and most likely the index page). It's just that the issue is a bit more noticeable with SEO installed, but it exists in a plain vanilla Zen Cart install as well.

    You can send 404 headers on invalid pages by doing this (for 1.3):

    1. Open file includes/init_includes/init_sanitize.php
    2. Find on line 105 or thereabout:
      PHP Code:
      if (!is_dir(DIR_WS_MODULES 'pages/' $_GET['main_page'])) { 
    3. Add after:
      PHP Code:
      header('HTTP/1.1 404 Not Found'); 


    That will give a 404 header to user agents (including search bots) on invalid pages.
    Last edited by dreamscape; 2 Aug 2006 at 07:03 PM.

 

 

Similar Threads

  1. v151 with ultimate seo Url,how to change the ez-page url ?
    By whywell in forum General Questions
    Replies: 1
    Last Post: 17 Jan 2013, 09:12 AM
  2. Chemo's Ultimate SEO URL's and EZPages?
    By Doodlebuckets in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 5 Aug 2008, 08:36 PM
  3. Fix for Easy Populate Froogle with Chemo's Ultimate URL's
    By mccord42 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 8 Feb 2007, 04:06 PM
  4. Can NOT access Admin after installing Chemo's Ultimate URL's
    By hankliu in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 12 Dec 2006, 10:33 AM

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