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!
Hompage stylesheet linked to local server name
Re: Hompage stylesheet linked to local server name
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...
-
JQ
Re: Hompage stylesheet linked to local server name
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. Weirdwishy 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...
Any way to get around it?
I have changed config.php to have the internet domain name (www.mysite.com)
Thanks
-
JQ
Re: Hompage stylesheet linked to local server name
Is there some settings I should check on my webserver (apache) ?
-
JQ
Re: Hompage stylesheet linked to local server name
just cleared my cache.....it works now
Props to Ted!
Props to Ted!

