Results 1 to 8 of 8
  1. #1
    Join Date
    Feb 2007
    Location
    Pennsylvania
    Posts
    856
    Plugin Contributions
    0

    Default Zenid Redirect Issue

    Hey All,
    1.5.1, on linux 2.6, running php 5.4.32

    Recently noticing some customers log in and end at thesite.com/?zenid=..... which is being redirected to thesite.com/index.html?zenid=.... which in turn delivers 404 page not found because there is no index.html.

    What in the world could be causing this behavior?

    Thanks, John

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,725
    Plugin Contributions
    13

    Default Re: Zenid Redirect Issue

    Something is very, very wrong in the basic creation of your pages. A quick look at your homepage's page source with the HTML validator shows 86 errors.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  3. #3
    Join Date
    Feb 2007
    Location
    Pennsylvania
    Posts
    856
    Plugin Contributions
    0

    Default Re: Zenid Redirect Issue

    guess I too see some issues with some markup like img alt text and data attributes on the category links, but that wouldn't cause this issue.

    Funny thing is that this is not happening on the dev site (same server nearly the same location...). as visiting site.com/dev/?zenid=.... redirects to site.com/dev/index.html?zenid=... and loads the home page.

    Strange though as there's no index.html on either live or dev.

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

    Default Re: Zenid Redirect Issue

    Quote Originally Posted by bumba000 View Post
    thesite.com/?zenid=..... which is being redirected to thesite.com/index.html?zenid=.... which in turn delivers 404 page not found because there is no index.html.

    What could be causing this behavior?
    That's typical of having rewrite rules in the /.htaccess of your site, or of having something in your server's master Apache configuration (or your vhost) which auto-adds index.html if no file is listed in the URL.
    .
    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
    Feb 2007
    Location
    Pennsylvania
    Posts
    856
    Plugin Contributions
    0

    Default Re: Zenid Redirect Issue

    the htaccess is the same for Live and Dev. why would the 404 only happen on the live site?

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

    Default Re: Zenid Redirect Issue

    The question is not why a 404 is occurring, but rather: what in your site is causing the "index.html" to be added to the URL?

    As I said, it could be added by the server configuration, by rewrite rules added by you (either knowingly or unknowingly by installing a so-called SEO plugin), or by installing plugins, or by someone altering the code on your server.
    .
    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
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Zenid Redirect Issue

    Quote Originally Posted by bumba000 View Post
    the htaccess is the same for Live and Dev. why would the 404 only happen on the live site?
    Please post a copy of the ".htaccess" file found in the root Zen Cart folder. Please post any ".htaccess" files in parent folders. For example if Zen Cart is located at "http://example.com/store/", provide the .htaccess file located at "/store/" and "/". Use [code][/code] tags around the file contents.

    In what ways is your site different from a "clean" installation of Zen Cart?

    Can you provide a URL (so we can see the behavior and look at the HTTP headers)?


    NOTE: As noted by DrByte, your hosting provider's master Apache configuration (or your domain's vhost) may be configured to redirect requests for "/" to "/index.html" (or "/store/" to "/store/index.html").
    Last edited by lhungil; 23 Jan 2015 at 09:36 PM.
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

  8. #8
    Join Date
    Feb 2007
    Location
    Pennsylvania
    Posts
    856
    Plugin Contributions
    0

    Default Re: Zenid Redirect Issue

    I was missing three lines in the live htaccess file...

    # All other pages
    # Don't rewrite real files or directories
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index\.php?main_page=$1&%{QUERY_STRING} [L]

    Thanks guys,
    John

 

 

Similar Threads

  1. Zenid issue
    By hockey2112 in forum Basic Configuration
    Replies: 13
    Last Post: 7 Nov 2012, 05:28 PM
  2. v139h Redirect Issue
    By gin27 in forum General Questions
    Replies: 4
    Last Post: 20 Apr 2012, 03:25 AM
  3. Redirect Issue
    By tatebn in forum General Questions
    Replies: 9
    Last Post: 30 Jun 2009, 01:11 AM
  4. Replies: 5
    Last Post: 6 Apr 2008, 01:57 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