Help!

Or search support forum

What's Global Moxie?

Global Moxie is the hypertext laboratory of Josh Clark, a designer, developer, and author who offers workshops and consulting for iPhone app design. He’s also creator of Big Medium, a web content management system. Josh spins words and code from multimedia studios in Providence, RI, and Paris, France.

What's Big Medium?

Big Medium is flexible, easy-to-use server software for creating and editing websites directly from your browser. Check out the features or download now.

On Shelves

Books by Josh Clark

Tap Happy: Designing Great iPhone Apps

Best iPhone Apps: The Guide for Discriminating Downloaders

iWork ’09: The Mising Manual

Moxiemail

Enter your e-mail to receive occasional updates:

Why are the images in my custom templates broken on some pages?

Question

Why are the images in my custom templates broken on some pages?

Answer

There's either a typo in the image URL in your template, or you're using a relative URL when you should be using an absolute URL. More on that in a sec.

Are your images where you say they are?

Images used in custom templates need to be loaded to your server outside of Big Medium. It's a tidy practice to keep your images in a single directory named, for example, "images":

http://www.example.com/images

Make sure that you have indeed uploaded your images to your server so that they exist where the image URL in your template says.

Use "absolute" URLs instead of "relative" URLs

An image tag with a relative URL might look something like this:

<img src="images/image.gif" />

...this tells the browser to look for a directory named images in the same directory where the page is located—that is, relative to the current page.

So in the case of a homepage at www.example.com, the browser will look for the images at www.example.com/images. But if the very same image tag is located at www.example.com/pages/page.html, the browser will instead look for the images in an entirely different directory (www.example.com/pages/images), because it's looking for the directory relative to the page's location, and the page is located in the pages directory.

The fix is to use an "absolute" URL, which either includes the full domain like so:

<img src="http://www.example.com/images/image.gif" />

...or has a slash in front of the directory name (as a kind of substitute for the full domain name), like so:

<img src="/images/image.gif" />
Download Big Medium
Try it free for 30 days, or buy to unlock.

Simple, Elegant, Effective

"Hats off to Josh. I always wanted someone to do a program like this. Simple, elegant and effective."
—Kevin Osborn

"There are people here in my office so impressed with your dedication and support of your product that they are convinced that you are not just one person but a small army."
—Paul McBroome

"Just a short note to say thank you for the many hours of hard work and dedication you have put into your product, Big Medium. We are extremely pleased with our purchase. It's not just that we needed a CMS and are relieved to be using one, it's that we found one that is easy to work with and which met all the requirements that we needed to take our websites to the next level. It's exhilarating just thinking of the possibilities we now have at our fingertips!"
—MaggiLu Tucker

More praise for Big Medium