Results 1 to 10 of 28

Hybrid View

  1. #1
    Join Date
    Feb 2011
    Posts
    29
    Plugin Contributions
    0

    Default Styles gone after editing config file

    I'm trying to edit my config files after changing nameservers. When I changed from
    Code:
     define('HTTP_SERVER', 'http://myusername.hostname.com');
     define('HTTPS_SERVER', 'http://myusername.hostname.com');
    to
    Code:
     define('HTTP_SERVER', 'http://www.mydomain.com');
     define('HTTPS_SERVER', 'http://www.mydomain.com');
    I lose my styles. Also, the links within the unstyled page return 404 errors.

    I also cannot access my admin login page.

    Thanks for any help!

  2. #2
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

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

    Default Re: Styles gone after editing config file

    Mark, they said they changed *nameservers*, not "servers". Granted, some people throw around the term "nameservers" without knowing what they're really saying.

    I suspect the problem is twofold:
    a) If there has in fact been a change made to nameserver settings, then replication hasn't completed yet. Can take up to 48 hours.
    b) In addition to altering HTTP_SERVER settings sometimes it's necessary to alter DIR_WS_CATALOG and/or DIR_FS_CATALOG. It really depends on the big picture of what's really changed technically regarding paths.
    .

    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
    Feb 2011
    Posts
    29
    Plugin Contributions
    0

    Default Re: Styles gone after editing config file

    Thank you both for responding. I did in fact mean nameservers, although it IS new to me . My domain is hosted at a different host and previously, I just used a redirect. I'm just getting my security certificate and needed to change the nameservers which I did about 8 days ago. A lot seems to have happened when I did that. The problems I've listed are the ones I could wrap my head around to start with.

    Regarding b) from DrByte, I didn't change any paths on purpose but I understand there were changes and I need to learn how to fix them now.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Styles gone after editing config file

    Perhaps you can explain the bigger picture about why you're changing what you're changing?
    .

    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.

  6. #6
    Join Date
    Feb 2011
    Posts
    29
    Plugin Contributions
    0

    Default Re: Styles gone after editing config file

    Ok, the long story is that I had a site and domain at one host. I didn't like the interface at that host and was redesigning the site and adding a shopping cart (ZC). Therefore, I built the site at a new host but left the old one up until the new one was finished. When it was done, all I did was point (terminology?) the domain to the new site. At this point, the domain is at the original host and the files are at the new host. I can tell you that at this stage when you went to any page on my site the URL was www.mydomain.com and when I refreshed any page it always went back to the index page. Hopefully that describes what I did with the domain pointing.

    I had the product page basically disabled at this time and just bought a security certificate. To do so, I had to change the nameservers where the domain is to properly go to my new site. When I did that and after 48 hours I couldn't access my site with www.mydomain.com but figured out that I could with www.mydomain.com/CUSTOM/index.php. I called my host and they changed a few things and got that to work. However, I can't access my admin login page (404 error) and can't figure out what to change the config files to. Which brings me back to my first post.

    Thank you so much for your patience in reading my posts. I don't know how else to fix this

    Andrea

 

 

Similar Threads

  1. Site gone down after editing the metatags.
    By ALT3RNAT1V3 in forum General Questions
    Replies: 3
    Last Post: 28 Jul 2012, 03:18 PM
  2. Contact Us is Gone after editing
    By VGlide in forum General Questions
    Replies: 3
    Last Post: 14 Sep 2011, 07:12 PM
  3. editing config.php file
    By pqhancock in forum Installing on a Windows Server
    Replies: 1
    Last Post: 22 Apr 2011, 11:27 PM
  4. after rename file gone
    By andrewmax81 in forum General Questions
    Replies: 4
    Last Post: 16 Nov 2009, 02:29 AM
  5. Replies: 2
    Last Post: 1 Jan 2009, 10:47 PM

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