Umbracians for Unicef - the friendly fundraising
In the spirit of holidays and humanity, we started a fundraising for Unicef. You won't believe what we could change if every visitor on Our Umbraco donated a dollar or euro. Click and find out!
i moved our website from a load balanced environment (1) to a single server (2).In (1) i reached the Umbraco backend via www1.ourdomain.com/umbraco, in (2) i use www.ourdomain.com/umbraco. Problem: some of the (generated) paths in the CSS file still point to http://www1.ourdomain.com which leads to missing images in the backend. How can i get rid of the old domain? Is there a misconfiguration or some cache to be emptied?
not sure what you mean by generated paths in the css, though they can only be added manually by tying them into css. If someone has entered the images with fully qualified path eg http://www1.ourdomain.com/images/myimage.jpg then just take out the domain so url becomes /images/myimage.jpg ?
Hi Matthias, which version of Umbraco are you using? If it is v4.5, could it be a ClientDependency caching issue?
If its v4.0.x - as Ismail says, try manually removing the domains?
sorry for the missing details.
I use v4.5. When i open the CSS file on the server, e.g. \umbraco\css\umbracoGui.css, the path looks like this: background-image: url('../images/tray/traySprites.png'); When i check the CSS in the browser (via developer tools) the path is converted to: background-image: url('http://www1.ourdomain.com/images/tray/traySprites.png');There are no hardcoded paths/links.
Try deleting the files from the "\App_Data\ClientDependency" directory. Something might be cached in there?
Have you tried different web-browsers and machines? Just to rule out that it's not a caching issue.
I deleted all files from the "\App_Data\ClientDependency" directory - without success. Yes, i tried different browsers.
How frustrating! :-|
Not sure what else to suggest. If there is no reference to the "www1" subdomain, then it shouldn't be using it - which means that it must be being referenced somewhere, right?
When you view the CSS directly in your browser, does it have the old domain paths? http://www.ourdomain.com/umbraco/css/umbracoGui.css
It's not IIS doing some redirect on static files? (That's a long shot!)
Hi Lee, didn't find a hint or solution, yet.
Just re-registered the www1 hostheader in iis to be able to work again.
Sorry to post in an old topic but I'm having a similar problem.
I've copied my Umbraco from my http://localhost:3388 to http://domain/InstallationName/ and the CSS fails.
I have the developer toolbar (Firefox) installed, and when I check my CSS files from there (even after CTRL+F5 and deleting ClientDependency folders) they contain weird html code. Small sample below.
Anyone got a clue as how come this is happening? Im guessing it has something to do with the fact the installation is now at "/somefolder" instead of the root domain?
edit: Stupid me! Now I see the problem? Umbraco thinks all the CSS is located at domain.org/css but in fact it's domain.org/SomeFolder/css.
Can't I fix this?
The page cannot be found