Understanding the MobileMe directory structure
Before getting started, be sure you understand the MobileMe directory structure for your MobileMe website. Your iDisk directory structure is set up similar to:
As you can see there are three folders that contain the word "Site", two of which as plural "Sites". This is very confusing. So, just ignore the "Sites" folder that is parralel to the "Web" folder, as we are only interested in the stuff in the "Web" folder. The stuff in the "Web" folder contains all the material on your MobileMe web site.
The MobileMe directory structure for your web site is set up as follows:
The "Sites" and "Site" folder have very similar names, which make things a little confusing.
For ease of explaination, we'll capitalize the plural folder as SITES and leave the singular "Site" folder initial caps.
The Web > SITES folder is the "root" folder for your web site.
- Everything in the Web > SITES folder is accessable with a web browser. This means we can put files and folders into the Web > SITES folder and they will be accessable from the web.
- Everything in the Web > SITES > Site folder is managed by iWeb.
- When you create a new page in iWeb, two things occur:
1. An HTML file is created inside the Web > SITES > Site folder using the title of your page as the "base name".
2. A folder is also created inside the Web > SITES > Site folder using the title of your page as the "base name".
You should see a file named "index.html" in the Web > SITES folder. The index.html file is the "default" or "home" page that is loaded when you visit your site without specifying a file name.
For example, if you enter the following into your browser's address bar:
Then the "index.html" page will load up. HOWEVER, what Apple has done is added some code into the index.html file so that the browser is re-directed to a page (usually the "About_Me.html" page -- or whichever page you've decided to set as your "home page"). If you open the index.html file in a text editor, you find the following:
<meta http-equiv="refresh" content="0;url= Site/About_Me.html" />
The code above is used to re-direct the browser to the page you've designated as your "home page" within iWeb.
So this set up can drive one crazy because it appears as though your "home page" is in the Web > SITES > Site folder and not the Web > SITES folder!
Armed with this information, hopefully you'll have a better understanding of the following: