Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 2005
    Location
    Scotland
    Posts
    76
    Plugin Contributions
    0

    Default Issue when down for maintenance

    Hi,

    when my site is down for maintenance it directs to the wrong url (shows subfolder on my main site hosting - eg. http://www.joeblogs.com/jsmith/index...or_maintenance - should show as jsmith.com). The domain for the site is setup as a subdomain on my own site (folder within public_html/jsmith folder). When the site is up and running I do not have this issue.

    Thanks, Martin
    Last edited by Ajeh; 20 Jul 2012 at 03:45 PM. Reason: remove zenid - never post in forums, emails etc.

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Issue when down for maintenance

    If you go to the Configuration ... Website Maintenance ... what do you have set for:
    Down for Maintenance: filename
    Down for Maintenance filename
    Note: Do not include the extension
    Default=down_for_maintenance
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Issue when down for maintenance

    It uses the URL comprised of using your HTTP_SERVER plus your DIR_WS_CATALOG settings from your /includes/configure.php file, just like the rest of your store does.
    .

    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
    Mar 2005
    Location
    Scotland
    Posts
    76
    Plugin Contributions
    0

    Default Re: Issue when down for maintenance

    Hi,

    it is set to down_for_maintenance in config>website main

    Thanks, Martin

  5. #5
    Join Date
    Mar 2005
    Location
    Scotland
    Posts
    76
    Plugin Contributions
    0

    Default Re: Issue when down for maintenance

    Hi,

    I have tried changing HTTP_SERVER and DIR_WS_CATALOG settings my includes (/includes/configure.php file) to the correct web address. However when I try and load the site I get a the below error message

    Not Found

    The requested URL /jsmith.com/index.php was not found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the reque

    below is a copy of the code from the config file:

    // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
    // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
    define('HTTP_SERVER', 'http://www.jblogs.com');
    define('HTTPS_SERVER', 'https://www.jblogs.com');



    // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
    // * DIR_WS_* = Webserver directories (virtual/URL)
    // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
    define('DIR_WS_CATALOG', '/jsmith.com/');

    You help is much appreciated as this is truely stumped me

    Thanks, Martin

  6. #6
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Issue when down for maintenance

    If your site URL is jsmith.com then HTTP_SERVER should be jsmith.com and not jblogs.com and DIR_WS_CATALOG should be '/'.

    And if jsmith.com is a subdomain whose files are located in a jsmith.com folder below another domain, then DIR_FS_CATALOG should still reflect the full path to the jsmith.com folder.
    .

    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
    Mar 2005
    Location
    Scotland
    Posts
    76
    Plugin Contributions
    0

    Default Re: Issue when down for maintenance

    Thanks again now got it working with the below:

    // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
    // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
    define('HTTP_SERVER', 'http://jsmithcom');
    define('HTTPS_SERVER', 'https://jsmithcom');



    // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
    // * DIR_WS_* = Webserver directories (virtual/URL)
    // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
    define('DIR_WS_CATALOG', '/');

 

 

Similar Threads

  1. v155 Login required by admin to browse when Down-for-maintenance
    By mc12345678 in forum General Questions
    Replies: 4
    Last Post: 2 Apr 2016, 02:41 AM
  2. v150 Redirect when the website is down for maintenance
    By jhowe in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 21 Aug 2012, 06:30 AM
  3. Why can I still see my products when after setting site down for maintenance?
    By ak6000 in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 19 Jun 2012, 03:40 AM
  4. Down For Maintenance issue
    By payless in forum General Questions
    Replies: 12
    Last Post: 16 Jul 2010, 12:17 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