One Umbraco install with managed hostnames but can't use URL Rewrites
Hey everyone
I've hit a bit of a roadblock and could use some advice. I have one application set-up in IIS7 named "website1.com," with Umbraco 4.7.1 installed on it. I am managing hostnames with two top-level domains, website1.com and website2.com. The first pertinent question here would probably be if this is good practice or if TLDs should be on different instances of Umbraco -- we've run into problems with this in the past. website1 has launched already and using URL Rewrite Module to create 301 redirects from the client's old domain to the Umbraco site. Now I am trying to launch and implement 301 redirects on website2, but wouldn't the 301's apply to website1 still since they are both on the same app in IIS? Is there a way in the Rewrite Module to target specific hostnames? Like "implement this specific Rewrite Map for website1" and "implement that specific Rewrite Map for website2." Thanks, I really appreciate the consideration!
It's perfectly legit to run more than one site in the same Umbraco instance. But you must be aware that you need to change the <useDomainPrefix> value in umbracoSettings.config in the config folder from "false" to "true". Otherwise it's possible to access content from website2.com on website1.com. When this has been set the url's are unique and you avoid potential duplicate content issues.
Then you must of course set the hostnames on each site in Umbraco, which you have already done. In order to be able to make unique url rewriting I think you need to setup two IIS websites for each of your websites. So in IIS you have website1.com and website2.com both pointing to the same Umbraco instance and I think that should be all...
If both applications are pointing at the same instance of Umbraco, wouldn't they also be using the same web.config file? In which the rewrites would affect both website1 and website2, right?
One Umbraco install with managed hostnames but can't use URL Rewrites
Hey everyone
I've hit a bit of a roadblock and could use some advice. I have one application set-up in IIS7 named "website1.com," with Umbraco 4.7.1 installed on it. I am managing hostnames with two top-level domains, website1.com and website2.com. The first pertinent question here would probably be if this is good practice or if TLDs should be on different instances of Umbraco -- we've run into problems with this in the past. website1 has launched already and using URL Rewrite Module to create 301 redirects from the client's old domain to the Umbraco site. Now I am trying to launch and implement 301 redirects on website2, but wouldn't the 301's apply to website1 still since they are both on the same app in IIS? Is there a way in the Rewrite Module to target specific hostnames? Like "implement this specific Rewrite Map for website1" and "implement that specific Rewrite Map for website2." Thanks, I really appreciate the consideration!
Hi Phillip
It's perfectly legit to run more than one site in the same Umbraco instance. But you must be aware that you need to change the <useDomainPrefix> value in umbracoSettings.config in the config folder from "false" to "true". Otherwise it's possible to access content from website2.com on website1.com. When this has been set the url's are unique and you avoid potential duplicate content issues.
Then you must of course set the hostnames on each site in Umbraco, which you have already done. In order to be able to make unique url rewriting I think you need to setup two IIS websites for each of your websites. So in IIS you have website1.com and website2.com both pointing to the same Umbraco instance and I think that should be all...
Hope this helps.
/Jan
If both applications are pointing at the same instance of Umbraco, wouldn't they also be using the same web.config file? In which the rewrites would affect both website1 and website2, right?
Any other suggestions?
Yes one single web.config will run all sites.
is working on a reply...