Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2008
    Posts
    3
    Plugin Contributions
    0

    help question Getting 404 error when accessing custom .html pages under my Zen Cart folders

    Ok I've searched and searched and cannot find out how to do this...

    I have a custom page under a directory within Zen Cart.

    Example:
    Zen Cart is installed in /
    The custom page is /customfolder/custompage.html

    When I go to view this custom page at the URL it is supposed to be, I get a Zen Cart "Page Not Found" error.

    I just want to be able to view this custom page. No I do NOT want customers to see this custom page. This custom page is for my own uses.

    Question is, how do I get it to show? It seems Zen Cart is trying to prevent access to it for some reason.

  2. #2
    Join Date
    Aug 2008
    Posts
    3
    Plugin Contributions
    0

    Default Re: Getting 404 error when accessing custom .html pages under my Zen Cart folders

    More information that I forgot to mention...

    I am using the SEO URL Rewrite thing. It may be affecting stuff but I am not knowledable of .htaccess or the modrewrite thing.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Getting 404 error when accessing custom .html pages under my Zen Cart folders

    It's likely something in your .htaccess rules.
    Turn off your SEO mod and then rename your .htaccess to htaccess_OFF and test again.
    Then sort out your issues based on the test results.
    .

    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.

  4. #4
    Join Date
    Aug 2008
    Posts
    3
    Plugin Contributions
    0

    Default Re: Getting 404 error when accessing custom .html pages under my Zen Cart folders

    When I turn off SEO and rename the .htaccess file, I can access the file.

    Again, I know nothing about .htaccess files and I've been trying to understand how the mod rewrite thing works. I'm totally confused.

    This is the .htaccess file I have right now:
    ##### NOTE: Replace /shop/ with the relative web path of your catalog in the "Rewrite Base" line below:



    Options +FollowSymLinks

    RewriteEngine On

    RewriteBase /



    # From Ultimate SEO URLs

    RewriteRule ^(.*)-p-(.*).html$ index\.php?main_page=product_info&products_id=$2&%{QUERY_STRING} [L]

    RewriteRule ^(.*)-c-(.*).html$ index\.php?main_page=index&cPath=$2&%{QUERY_STRING} [L]

    RewriteRule ^(.*)-m-([0-9]+).html$ index\.php?main_page=index&manufacturers_id=$2&%{QUERY_STRING} [L]

    RewriteRule ^(.*)-pi-([0-9]+).html$ index\.php?main_page=popup_image&pID=$2&%{QUERY_STRING} [L]

    RewriteRule ^(.*)-pr-([0-9]+).html$ index\.php?main_page=product_reviews&products_id=$2&%{QUERY_STRING} [L]

    RewriteRule ^(.*)-pri-([0-9]+).html$ index\.php?main_page=product_reviews_info&products_id=$2&%{QUERY_STRING} [L]



    # For Open Operations Info Manager

    RewriteRule ^(.*)-i-([0-9]+).html$ index\.php?main_page=info_manager&pages_id=$2&%{QUERY_STRING} [L]



    # For dreamscape's News & Articles Manager

    RewriteRule ^news/?$ index\.php?main_page=news&%{QUERY_STRING} [L]

    RewriteRule ^news/rss.xml$ index\.php?main_page=news_rss&%{QUERY_STRING} [L]

    RewriteRule ^news/archive/?$ index\.php?main_page=news_archive&%{QUERY_STRING} [L]

    RewriteRule ^news/([0-9]{4})-([0-9]{2})-([0-9]{2}).html$ index\.php?main_page=news&date=$1-$2-$3&%{QUERY_STRING} [L]

    RewriteRule ^news/archive/([0-9]{4})-([0-9]{2}).html$ index\.php?main_page=news_archive&date=$1-$2&%{QUERY_STRING} [L]

    RewriteRule ^news/(.*)-a-([0-9]+)-comments.html$ index\.php?main_page=news_comments&article_id=$2&%{QUERY_STRING} [L]

    RewriteRule ^news/(.*)-a-([0-9]+).html$ index\.php?main_page=news_article&article_id=$2&%{QUERY_STRING} [L]



    # All other pages

    # Don't rewrite real files or directories

    RewriteCond %{REQUEST_FILENAME} !-f [NC]

    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteRule ^(.*).html$ index\.php?main_page=$1&%{QUERY_STRING} [L]

 

 

Similar Threads

  1. v151 Getting 404 error when going to define-pages editor
    By gene02 in forum General Questions
    Replies: 2
    Last Post: 7 Nov 2012, 06:36 PM
  2. Replies: 1
    Last Post: 11 Jun 2011, 01:22 AM
  3. Replies: 1
    Last Post: 6 Jun 2011, 07:59 PM
  4. Replies: 5
    Last Post: 22 Jan 2009, 10:23 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