Page 5 of 5 FirstFirst ... 345
Results 41 to 42 of 42
  1. #41
    Join Date
    Jan 2010
    Location
    France
    Posts
    279
    Plugin Contributions
    0

    Default Re: path routing problem with the hosting

    I forgot my screen
    Name:  Schermata 2016-05-20 alle 14.25.21.jpg
Views: 59
Size:  38.8 KB
    Giovanni,
    Zen Cart V1.5.8 + templates ZCA Bootstrap Template

  2. #42
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,690
    Plugin Contributions
    9

    Default Re: path routing problem with the hosting

    ok. i can going to humbly disagree.

    ZC needs to keep it simple. the sanitizer is for sanitizing variables. period. it should not redirect. if a product is in-active and hence not displayed, ZC should generate a 404 without a redirection. session, no session; it should not matter.

    the OP said this was an issue dealing with his google ranking and he thinks its because of the 302 to 404. i can not say if his ranking is hurt due to the redirection; i can only say redirecting to a 404 makes zero sense. if no session is started, MC says this behavior would not happen. i can not say. i can only say that this behavior is wrong. and commenting out that line addresses the problem. it does absolutely nothing with regards to ZCs sanitizing of variables. you come to page with a product that does not exist or that is inactive; don't have google or anyone else index the page. sanitize the variables and give them the 404.

    i have read no argument in this thread that warrants further discussion, IMHO, as to why that redirect is there. unless someone can convince me otherwise, i see no reason for it to be there; nor for changing it to a 404 and then another 404.

    it's the sanitizer. sanitize the variables. move on. keep it simple.

    as far as it not working for diamond1, i tested it on a vanilla install of v160. works fine. i tested it on my development v155 with lots of other plugins and modified templates, also works fine. if it does not work for him, i can not say what the problem might be. i'm sure some troubleshooting could address it.

    as further proof of why i think this is wrong, lets say a ZC store created a new product type, with a new display page. someone went to this page:

    index.php?main_page=product_awesome_info&products_id=164025566

    it would generate a 302, and then ZC redirects to:

    index.php?main_page=product_info&products_id=164025566

    where a 404 gets generated.

    now if the ZC store owner wanted different 404 pages shown for the different product types, he could not do it all because of the redirect. and the ZC store owner would even need to change the redirect code in the sanitizer associated with this unneeded redirect.

    best.
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

 

 
Page 5 of 5 FirstFirst ... 345

Similar Threads

  1. v154 (77) Problem with the SSL CA cert (path? access rights?) - Solved
    By nuganics in forum PayPal Express Checkout support
    Replies: 0
    Last Post: 28 Jan 2015, 02:23 AM
  2. Double Path Problem with BlueHost
    By cwhittaker in forum Installing on a Linux/Unix Server
    Replies: 15
    Last Post: 24 Jan 2010, 10:58 PM
  3. Hide side box with banner and Routing image
    By ryanb4614 in forum Basic Configuration
    Replies: 1
    Last Post: 14 Feb 2008, 03:37 AM
  4. help my physical path on Yahoo hosting
    By lina0962 in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 7 Jun 2006, 04:43 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