Elxis CMS Forum

Support => Technical support => Topic started by: heyhey on December 08, 2008, 22:48:50

Title: Page wont display properly
Post by: heyhey on December 08, 2008, 22:48:50
When i enter the local address (192.168......) into the address bar the site works fine. its when i place the external ip into the address bar the page doesnt display properly. the text comes up but it is as if it isnt using the style sheets. im really at a loss.

Title: Re: Page wont display properly
Post by: Ivan Trebješanin on December 08, 2008, 22:59:18
It looks like very simple and well known problem with localhost. Visit your page (in a way that don't show css) and post here the line that says something like:
Code: [Select]
<link href="http://www.YourDomain.com/templates/YourTemplate/css/template_css.css" rel="stylesheet" type="text/css" media="all" />You should use "View Source" or similar command in your browser to find this line in source.

It is easy to fix, don't worry.
Title: Re: Page wont display properly
Post by: heyhey on December 08, 2008, 23:17:45
do you want the style sheet header info or the a link in the body code?
Title: Re: Page wont display properly
Post by: heyhey on December 08, 2008, 23:22:18
<link href="https://192.168.xxx.xxx:443/nemisis/includes/standard.css" rel="stylesheet" type="text/css" media="all" />
Title: Re: Page wont display properly
Post by: datahell on December 08, 2008, 23:46:24
You can not use 2 ips, a local and a public one, simultaneously. It just wont work good. If you wish your site to be accessible via the internet use the public ip address as the $mosConfig_live_site URL. When someone calls the site using the public ip, ie: http://66.77.88.99 and you have the css to load using a local ip like this:

<link href="https://192.168.xxx.xxx:443/nemisis/includes/standard.css" rel="stylesheet" type="text/css" media="all" />

the visitor will never see the css!
You should use the public ip everywhere or the local one but in this case the site will be only accessible by you or within your network.
Title: Re: Page wont display properly
Post by: heyhey on December 08, 2008, 23:56:01
Yeah ive nearly got it although i had to manually edit the config.php...

Just the header banner that wont display now. i wonder why?

the rest of the site works fine ... what a silly error to overlook :)
Title: Re: Page wont display properly
Post by: datahell on December 09, 2008, 00:25:08
Nothing strange, just a normal behaviour for your settings...