iWeb FAQ - Avere e gestire molteplici siti
iWeb FAQ - Avere e gestire molteplici siti
iWebFAQ.org
Come posso avere più siti? E come faccio a pubblicarne solo uno invece che tutti o nessuno?
AL MOMENTO NON DISPONIBILE IN ITALIANO
I may explain first that there's a difference between domain names (personal domains) and domain (or domain.sites2) files. Domain names are used to reach your website on the web, like yourdomain.com. Domain files instead are on the computer and used by iWeb to store its files. They are NOT directly linked to each other. You could still use your different personal domains with leaving all the sites in one domain file. Just point the personal domains to the site it applies to. There’s no need to have separate Domain files to be able to use different personal domains. For infos about personal domains yourdomain.com go to this page.
Chapter 1: Managing and editing (for all chapters, not needed for chapter 2a) and 4) unless you want it)
Chapter 2: Publishing, to same MobileMe
Chapter 3: Publishing, to different MobileMe accounts
Chapter 4: Publishing, to same server
Chapter 5: Publishing, to different servers
Remember to always have a Backup of all Domain files. Also make a Backup before going through Chapter 1. It's REALLY important to have Backups!
Chapter 1: Managing and editing
There are two ways for managing and editing two or more completely independent websites. But before trying any of these methods back up your Domain file (see Note 2 and link for backup at the end of the page). Here we go:
-You can do it manually by having two or more Domain files. One for each site. If you already created all websites in the same domain file you just have to duplicate (triplicate, ...) the Domain file where iWeb stores its files (Macintosh HD/Users/Username/Library/Application Support/iWeb/Domain.sites2). Select the file and hit Command(Apple)+d. Now on one copy you delete one site and on the other you delete the other and so on. Be sure to not overwrite one website with the other, place the two domain files into two (or more) different locations (folders). If you want to rename each domain file you can do it. This name only displays on your Mac doesn't have anything to do with publishing to web. On the web each Domain file will publish a folder named with the name you give the site in iWeb. To edit one or the other Domain file just double-click on one or the other. The Domain files are now completely independent from each other so a change on one will not apply to the other as well.
Old Toad made a workflow on this here.
- With a freeware application which splits your Domain file into many Domain files called iWebSites
Chapter 2: Publishing, to same MobileMe
For multiple personal domains of the type yourdomain.com have a look at Chapter 4 of this page instead.
First let me say that MobileMe wasn’t built for that. The idea behind MobileMe is to have personal websites to show to your friends grandparents and so on but not the kind of websites to be seen by everybody, the commercial sites and so on. There are different reasons why I say that:
- For example if you have a single MobileMe account you can’t have more than one domain using CNAME. Which is one of the most important things to me (especially to get it on Google).
- It lacks of PHP compatibility (used by Forums, WordPress Blogs, Contact Forms and more), MySQL (Forums, MediaWiki, WordPress blogs, ...). Things needed to have a complete website.
MobileMe is pretty limited (especially for what concerns having multiple websites with multiple domains) whereas iWeb is much less limited than it seems. I’d really recommend you to have a real hosting instead of MobileMe. For informations about hosting your site on a server other than MobileMe see the Publishing to Folder, FTP, Hosting FAQ.
Anyway if you’re publishing different sites to the same MobileMe account each site should have another name displaying in iWeb.
a) From same user account on the same computer
You could leave the sites all together showing up at the same time in iWeb as iWeb updates only files that have been changed since you published last. That is not separating them. Simply because there’s no need to do so (the thing works different with publishing to folder... there you have to publish all you have in iWeb and that's where having all sites in one Domain file gets annoying).
However if you don’t like them to show up all at the same time you could also use iWebSites (especially if using iWeb ’06) or better manually split them. After you published entering the base URL will redirect you to the last published site. Have a look at Chapter 4 about how to make a general index site from which visitors choose which site they want to visit.
b) From different user accounts (or different computers)
When you will publish and upload to the same account entering your url in a browser you will be redirected to the site you published last.
If you publish two or more websites to the same account make a new website which will contain an index of the websites and users from there will choose which to visit (see Chapter 4). Publish this site always last.
As long as the sites are named differently there should be no problem with "intermingling".
Note 1: For MobileMe publishers publishing to a single-Account. If you have multiple domain.sites2 files the CNAME using personal domain will redirect to the site for which you last did a ‘publish all’. As long as you just hit ‘publish’ the site to which you get redirected inserting the personal domain using CNAME doesn’t change. The same happens entering web.me.com/username/
If you have multiple domain.sites2 files and publish them to the same folder the same thing is happening. As you can see the result of the publishing is an index.html file and a folder with the name of the site. The index.html file is the one which redirects people to the first page of your site. When you publish a second site the index.html file gets replaced with the one you published last, thus people are redirected to a new first page.
Chapter 3: Publishing, to different MobileMe accounts
Some people find it easier to have one User account on the computer and change the MobileMe username and password each time they want to publish another site by going into the System Preferences.
Other people prefer to have two different user accounts on the computer and login to that or the other depending on the site they want to edit without needing to change the MobileMe username and password in the System Preferences each time to publish. To achieve that have a look at this.
It’s up to you to choose which way you prefer. Whether you want to change the data in System Preferences or Login to another user account on your computer.
Chapter 4: Publishing, to same server
To avoid problems with "intermingling" (and you really should do it) follow these steps:
1) Create a main index website containing a main index page. That will be the index site where people can choose which site they want to visit and the site displaying when you enter your base url. Could also only be your first site where all the people get redirected to entering your base url.
You will publish this site from iWeb to:
Documents/Websites/
2) Publish your other websites to another location
3) Once you published them move only the folder named with the name of your website to
Documents/Websites/
not the index.html file outside the folder
4) Publish to your server all the content of
Documents/Websites/
5) Entering your url people will automatically get redirected to the index website from where they will have the links to the different websites or to the first website.
If you want an index website on the index page you have to put the following links: link to Site1 and Site2 as they were external pages:
http://www.yoururl.com/Site1/
http://www.yoururl.com/Site2/
7)To summarize I make the example with my homepage:
To get to my website you enter www.alaskadream.org in your browser
-You will get to my index page, from there you can choose to visit
--Italian site
--German site
--English site
--French site
I think that’s the best way to manage, edit and publish different sites...
Chapter 5: Publishing, to different servers
If you publish to different locations/servers:
-Publish the websites from iWeb to different Folders for example
Documents/Websites/Site1/
Documents/Websites/Site2/
-Publish to your server only the content of the folder you want (be sure to not-upload the folder itself, but only the content: index.html file and folder named with the name of your site)
If one site goes to MobileMe just publish one of the two to a folder and for the one that goes to MobileMe hit the publish button in iWeb.
NOTE 1: If the websites aren’t completely independent from each other you will have to make “external links” for linking pages between them
NOTE 2: On January 27, 2008 a new version of iWebSites was released that allows you to merge Domain.sites2 files. iWebSites merges Domain files split with iWebSites itself AND also Domain files split manually.
iWebFAQ.org - Tutorials, Tips & Tricks è fatto con iWeb e per iWeb.
Vi è presentato da Cédric ed è ospitato su HostExcellence.com
Vi prego di lasciarmi del feedback su questa pagina lasciandomi un commento qui. Ditemi se vi è stata di aiuto e se non lo è stata perchè non lo è stata. Se pensate che manchi qualcosa ditemi cosa.
Grazie per visitare e sostenere il mio sito.

