Changing the website URL

I made this change shortly after the upgrade to 3.4, so I don’t know if this is a new problem or old.


I removed the URLs from a site that were

http://originaldomain/path

http://originaldomain/path



and I added

http://originaldomain/path



but somehow I have ended up with

http://originaldomain/path

http://originaldomain/path



Why did Matrix make up a new address for this website and add it to the URLs? Now when previewing, it often uses this automatically created URL, which can break addressing to other elements, eg style sheets, and is just plain annoying. The original domain contains the server name and should not be exposed in URLs.



Is there some kind of rule in place that I broke by removing the original domain? The new domain is listed in the virtual hosts section of the httpd.conf file and aliases appropriately to Matrix.

Has the new domain been added to the list of System Root URLs in the System configuration?

Yes it is in that list.

My advice would be to remove all the URLs from the site (so that its blank) and then reapply the URLs that are required.

On the discussion of URLs why wont MySource matrix use:


http://127.0.0.1 for a HTTP URL ? (or in that regard, http://127.0.0.1



I dont really want to setup DNS on my iBook for demos. Currently I’ve set a static IP address which requires me to run the AirPort card to remain active while I demo - this is rather heavy on the battery pack (as I need to run Internet Connection Sharing to keep the IP address up).

I use localhost as a Site URL all the time. I'm not sure why it isn't working for you. Make sure its configured in the System Root URL screen within System Configuration before trying to apply it to a site.


Though, nowadays I edit /etc/hosts (or equivalent) to include matrix.local as an alias for 127.0.0.1. Then use that name.



You also need to ensure that Apache is configured to support responding to request to the loopback address (127.0.0.1) and will pass those to Matrix. If you're using a VirtualHost block, this won't happen.

Um - I actually had overlooked the System Configuration - doh!


I think being actively involved with several CMS products does these things… however, I must confess - I love MySource Matrix by far the most… at least its rather intuitive.

When adding multiple System Root URLs in the SysConfig, how are they seperated - by new line, semi-colon?

They are new-line seperated (i.e. one URL per line).