Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Jan 2010
    Posts
    12
    Plugin Contributions
    0

    application error The requested URL /shop/...web-special-p-5.html was not found on this server

    Moving the ZenCart (1.38a) store "as is" from one server to another. Domain remains the same. I'm now getting the error:

    "The requested URL /shop/forward-arch-corrective-orthotic-web-special-p-5.html was not found on this server."

    I'm assuming that the cart is dynamically creating this page.

    Checked permissions on all directories in the cart, apache user has read/write permissions in all directories and all files. Admin works fine and checked the Specials and everything there looks good, and as expected (enabled..etc..).

    Any suggestions as to what I can check that might be hanging this up..

    Thanks for any suggestions..

    John...

  2. #2
    Join Date
    Jul 2005
    Location
    Orlando, Fl
    Posts
    324
    Plugin Contributions
    0

    Default Re: Specials on home page "not available"

    Have you checked the .htaccess file for changes ?

    Is mod_rewrite working in Apache?
    Last edited by djdavedawson; 29 Sep 2013 at 02:18 AM.

  3. #3
    Join Date
    Jan 2010
    Posts
    12
    Plugin Contributions
    0

    Default Re: Specials on home page "not available"

    Quote Originally Posted by djdavedawson View Post
    Have you checked the .htaccess file for changes ?
    No did not touch it, and it is there.. The paths on this server are exactly the same as the paths on the original server.

    Quote Originally Posted by djdavedawson View Post
    Is mod_rewrite working in Apache?
    Ran

    httpd -M

    and yes rewrite_module is loaded

    Thanks for your suggestions.. Any other ideas..??

    John..

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

    Default Re: The requested URL /shop/...web-special-p-5.html was not found on this server

    Your URL-rewrite addon isn't properly configured on your new 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.

  5. #5
    Join Date
    Jan 2010
    Posts
    12
    Plugin Contributions
    0

    Default Re: The requested URL /shop/...web-special-p-5.html was not found on this server

    Quote Originally Posted by DrByte View Post
    Your URL-rewrite addon isn't properly configured on your new server.
    Thanks.. Could you be a bit more specific.. "addon" ? I looked at the SEO URL settings and saw nothing that needed changed or edited.

    Confirmed that mod_rewrite is active, the htaccess is exactly the same, the paths and settings are exactly the same, the virtual host settings are exactly the same. Obviously there is something else you are referring to..

    ???

  6. #6
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: The requested URL /shop/...web-special-p-5.html was not found on this server

    A stock Zencart site would never create a URL in this format: /shop/forward-arch-corrective-orthotic-web-special-p-5.html, so you must have some sort of URL rewriting mod added to your site.

    BTW - as I Understand it, even if you insist on rewriting your store's URLs, adding the .html extension is not a good idea.

  7. #7
    Join Date
    Jan 2010
    Posts
    12
    Plugin Contributions
    0

    Default Re: The requested URL /shop/...web-special-p-5.html was not found on this server

    Quote Originally Posted by stevesh View Post
    A stock Zencart site would never create a URL in this format: /shop/forward-arch-corrective-orthotic-web-special-p-5.html, so you must have some sort of URL rewriting mod added to your site.
    Ah, good info, thanks.. Please understand I just inherited this problem. I have done a number of ZenCarts where I install it fresh and style it.. Never encountered this issue before. I wondered about that .htaccess file.

    Quote Originally Posted by stevesh View Post
    BTW - as I Understand it, even if you insist on rewriting your store's URLs, adding the .html extension is not a good idea.
    I don't insist. I'm assuming I can remove the .htaccess file and give that a test.. There is one section in that file that is labeled "Ultimate SEO Urls" and that is where I think this is generated..

    I'll give this a test and see if that does the trick..

    Thanks again..

    John..

  8. #8
    Join Date
    Jan 2010
    Posts
    12
    Plugin Contributions
    0

    Default Re: The requested URL /shop/...web-special-p-5.html was not found on this server

    Ok.. I removed ALL htaccess files in throughout the shop folder structure (renamed only), restarted the apache service, cleared all browser caches. Even tested in another browser on another machine that has NEVER been to that site.

    Exact Same error.. This is really strange..

    It does appear to have the format of ONE the htaccess rewrites but that is no longer there:

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

    but this file is now completely removed..???

    Ideas on what I'm missing here..?

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

    Default Re: The requested URL /shop/...web-special-p-5.html was not found on this server

    You're looking at the rewrites backwards.

    Your PHP code is writing the wrong URLs (the ones with the words in them and the .html in the end). You need to disable whatever plugin is doing that, or remove the code that's doing it.

    Without the rewrite rules IN your .htaccess to MATCH what your PHP code is creating, your server won't know what to do with those bad URLs. Thus it's throwing the 404 ("not found") errors.


    So: tell your ZC to stop creating URLs that require rewriting, and then your lack of working .htaccess rules won't be an issue.
    "How" you do that depends on whatever plugins you've got installed that are doing something other than what ZC does out-of-the-box.
    .

    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.

  10. #10
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: The requested URL /shop/...web-special-p-5.html was not found on this server

    Quote Originally Posted by jbmoore View Post
    ... Confirmed that mod_rewrite is active, the htaccess is exactly the same, the paths and settings are exactly the same, the virtual host settings are exactly the same. ...
    Best advice to get it back up fast:
    As others have pointed out disable the module generating the alternative URLs. Keep in mind if this was a well established site, running without the altered URLs may result in a negative hit to the ranking of your pages in SEs.

    Next you will want to determine WHAT is different on the new server and why the mod_rewrite directives in your ".htaccess" file are not taking effect. Obviously something is different, or you would not be seeing 404 errors. If you are on a "managed" VPS, you may be able to ask your hosting provider to take a look...

    Lastly, decide if you really want / need alternative URLs. Is there is business purpose? If you do not want / need them, disable the module generating the alternative URLs and have someone alter the mod_rewrite directives to generate 301 redirects back to the stock Zen Cart URLs...


    I'd highly recommend (no matter what you decide) to upgrade to Zen Cart 1.5.1 (or at least 1.3.9h)... The new versions include MANY fixes, security patches, performance tweaks, and support for newer versions of MySQL and PHP. In addition updated versions of many plugins (add-ons, modules, themes) are not available for Zen Cart 1.3.8.
    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

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Admin 404 Not Found The requested URL was not found on this server
    By L.a.Willman in forum Installing on a Windows Server
    Replies: 23
    Last Post: 10 Jan 2012, 02:26 AM
  2. The requested URL xxxxxx.html was not found on this server.
    By bosv in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 18 Aug 2010, 08:41 AM
  3. The requested URL /admin was not found on this server.
    By dragon2007 in forum General Questions
    Replies: 4
    Last Post: 22 Jul 2010, 09:18 PM
  4. Replies: 5
    Last Post: 21 Jun 2008, 08:20 PM
  5. The requested URL /shop/..... was not found on this server
    By Stone10 in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 5 Nov 2006, 06:28 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