How to set the root url when 2 pages on root level?
Hello,
we created a 2nd page at root level.
Content structure in Umbraco looks like:
HOME
-- xxx
SUPPORT
-- xxx
Normally the Link to document of the HOME site is “/”. But if we publish the HOME site now, the Link to Document is changed to “/home” and the new SUPPORT page is linked with “/” as our root page.
Is there somewhere a setting or config entry to avoid this behavior?
After each publish of HOME we always have to publish SUPPORT to, to correct the Link.
You could try adding a hostname to the HOME node via the back office. That should set the hostname to run from the HOME node.
You can do this by right-clicking the HOME node and selecting 'Culture and Hostnames'. Add the hostname to this node and your url should stay the same.
set a hostame isn't working for me. On my local system I inserted "http://mydomain.de.local/". But after saving, the hostname field is again empty.
Maybe because the Language dropdown is empty on my system?!
Think to shift the SUPPORT page below the HOME is the easier solution in my case.
I think you'd want to remove the protocol from your entry to get the domain working correctly. So instead of http://mysite.local/, you'll want to enter just mysite.local.
How to set the root url when 2 pages on root level?
Hello,
we created a 2nd page at root level. Content structure in Umbraco looks like:
HOME
-- xxx
SUPPORT
-- xxx
Normally the Link to document of the HOME site is “/”. But if we publish the HOME site now, the Link to Document is changed to “/home” and the new SUPPORT page is linked with “/” as our root page. Is there somewhere a setting or config entry to avoid this behavior? After each publish of HOME we always have to publish SUPPORT to, to correct the Link.
Thanks. Regards, fabian
Hi Fabian,
You could try adding a hostname to the HOME node via the back office. That should set the hostname to run from the HOME node.
You can do this by right-clicking the HOME node and selecting 'Culture and Hostnames'. Add the hostname to this node and your url should stay the same.
I hope that helps.
Thanks, Dan.
Hi Dan,
set a hostame isn't working for me. On my local system I inserted "http://mydomain.de.local/". But after saving, the hostname field is again empty. Maybe because the Language dropdown is empty on my system?!
Think to shift the SUPPORT page below the HOME is the easier solution in my case.
Thanks, fabian
Comment author was deleted
Dan's suggestion above should work. Also consider only placing one node at the root and the rest as children to the home node.
Hi Fabian,
I think you'd want to remove the protocol from your entry to get the domain working correctly. So instead of
http://mysite.local/
, you'll want to enter justmysite.local
.Thanks, dan.
Tried both. ;) But after saving the field is empty. Get no error in browser or console.
If I read the documentation both should work.
"DOMAINS
Valid domain names are: "example.com", "www.example.com", "example.com:8080" or "https://www.example.com/". "
Hi Fabian,
To get languages into the dropdown you need to go to Settings > Languages and add a language (or more).
But I'm not totally convinced that's the cause of the error... can't hurt to try, though :)
/Chriztian
thanks @Chriztian Steinmeier i added different languaage which not implemented and make it as a default language the site gives me that view
it ok
but how can i adjust it or create under construction page
is working on a reply...