Change default / root.
# help-with-umbraco
c
Hey all, Recently published a second root node alongside another (Two sites running in the same instance). How can I go about changing the default root node to the new root node I published? (By this i mean have the new node be the default "/" url
s
Sort it so that it's the first node in the tree 🙂
c
Yeah. I did 😬
My second root node is holding onto "/"
s
Ah I guess try to unpublish them both, publish the one you want to be first and then the second one
c
Very scary seeing:
xD
s
well it's true
c
Yeah, just would have thought there might have been an option in cultures / hostnames to say "Hey, this is the new default root node"
s
Is this a live site?? Please test on local first!
c
Oh i am doing it locally haha
s
😅 good
well, sorting the nodes is usually how to do it, did unpublish/publish work
And yes all your URLs WILL change.. depending on the new structure
c
So far no. Just trying various things like deleting and restoring to see if that does it
s
if it's just a straight up copy of the site then the URLs will stay the same of course
deleting / restoring what exactly?
c
Locally - The original root node and its children
and then restoring it back into the tree
To see if my second root node becomes "/"
s
If you unpublish the root node with URL
/
then you get a 404 right? If only ONE of the root nodes is published then you should get that node as the default
c
Correct- however upon republishing the original, it seems to take back "/"
s
So if you then publish the second one again, does it flip back to the one you didn't want to be first?
alright, that's unexpected. Try rebuilding NuCache as well
c
Yeah no dice 😅 One of those silly situations where the only reason this needs resolving is to get /umbraco on what is considered the "main" hostname
Typically the client wanted to do the "Non" main website first and add the main one in a year later against our wishes
s
Yeah but that's easily solved on live with culture/hostnames.
c
Maybe add a silly hostname to the one you don’t want to have the / URL…? (E.g. “/dontgohere”)
2 Views