PDA

View Full Version : Missing "www." doesn't allow images to load.



PLabrozzi
February 22nd, 2007, 12:44 PM
Solved.

mickshake
February 22nd, 2007, 02:42 PM
Solved.


I know you've already solved the issue but this sort of thing bugged me for a while.

It's a crossdomain thing, and I wrote some javascript to redirect domain.com to www.domain.com just for this reason:

var thisURL = "" + window.location;
var dissect = thisURL.split("/");
if((thisURL.indexOf("www.")<=0) && dissect[2].indexOf("www")<=0) {
dissect.splice(2,1,"www." + dissect[2]);
window.location= dissect.join("/");
}

bwh2
February 22nd, 2007, 09:59 PM
@Plabrozzi: glad you got it worked out. but in the future, it's much more helpful to other members if you just leave your post and make a new post with the solution.

thanks mickshake for posting the answer.