Page 1 of 1
Hompage stylesheet linked to local server name
Posted: Wed Aug 24, 2005 10:37 pm
by JQ
When I acces my site via
www.mysite.com, the stylesheet is linked to http://
localservername/stylesheet.php?templateid=1, so it doesnt work from the public internet....
BUT when I use the link
http://www.mysite.com/index.php?page=Home, it has the correct stylesheet link (/stylesheet.php?templateid=1), so it works fine from the public internet
Help!
Thanks!
Re: Hompage stylesheet linked to local server name
Posted: Thu Aug 25, 2005 12:43 am
by Ted
The problem is that the {stylesheet} tag gives out full absolute URLs based on the URL in config.php. There isn't really a way to do relative paths at the moment, but it's come up in the past and I should probably look into it...
Re: Hompage stylesheet linked to local server name
Posted: Thu Aug 25, 2005 1:34 am
by JQ
wishy wrote:
The problem is that the {stylesheet} tag gives out full absolute URLs based on the URL in config.php. There isn't really a way to do relative paths at the moment, but it's come up in the past and I should probably look into it...
It seems to be just the first view of the index that does not have the correct path ie. when you go to
www.mysite.com, the stylesheet link is wrong, but if you click on a link that takes you to the same page, its right again. Weird
Any way to get around it?
I have changed config.php to have the internet domain name (
www.mysite.com)
Thanks
Re: Hompage stylesheet linked to local server name
Posted: Thu Aug 25, 2005 4:49 pm
by JQ
Is there some settings I should check on my webserver (apache) ?
Re: Hompage stylesheet linked to local server name
Posted: Thu Aug 25, 2005 8:02 pm
by JQ
just cleared my cache.....it works now
Props to Ted!