Umbraco multiple sites same node name throws 404 - umbraco

I have an umbraco installation that has two sites in it both with a page called Contact Us in the root. I have configured their domain names so in development I have site1.local and site2.local
if I go to site1.local/contact-us/ the page works fine but then if I try to go to second sites contact us page (site2.local/contact-us/) it just redirects me to the first sites 404 page.
Has anyone come across this problem or know how to fix it?

Check you have set up a template and assigned it to the page as you get redirected to the main 404 if no template is set. If so

Related

MVC app redirecting to domain name

I have inherited an MVC app which seems to not want to start properly.
When I run the app it initially goes to http://localhost:63744 but then immediately 301 redirects to http://www.thecompanydomainname.com.
I can't seem to find what is causing the redirect I have looked in the home controller and it seems to have an index action but before it gets there the redirect is happening. I should also mention that this mvc site is partly using Umbraco.
I realise that this is impossible to diagnose without having access to the project but I just wondered if anyone have any ideas as to why this might be redirecting and where I should look for the redirecting code?
Many thanks,
Kiran
I was being stupid. The browser had cached the first 301 (perm redirect) and from that point on simply redirected the request before it got to the application.
I solved (in chrome) this by going to chrome://net-internals. On the right of the top red status bar, click on the down arrow ▼ to open the drop-down menu, and under the "Tools" group, choose "Clear cache".

Google indexed a page that doesn't exist

There is something very weird happening on a website I'm working with. When I do a research on Google about a product of the website, the return result is a page that doesn't exist but it doesn't return a 404 error.
The "page.html" does exist, but it is not on the path that Google found, the URL is somehow being created out of nowhere, and since it is inside Joomla, it is causing some visual errors.
I've done some research, and a-lot of people have this kind of error, but normally the page is a 404 or a duplicated version. In my case, the page opens normally, the only thing is that the "page.html" is somehow being put on a path that is not correct. I've already checked inside the folders and there is not a duplicated page inside them.
What could be happening?
If this is a website you host, you can mark the page as a nofollow. If not, Google Search has a beta feature called "About this Result" in which you can leave feedback telling Google the page does not exist. Also, if you reach a 404 page, Web Crawlers will find it on their own eventually.

No template exists to render the document at url '/'

In Umbraco, why does one get this error on a new deployment or machine that is pointing to an existing umbraco database and existing content?
Page not found
No template exists to render the document at url '/'.
In addition, no template exists to render the custom 404.
This page can be replaced with a custom 404. Check the documentation
for "custom 404".
This page is intentionally left ugly ;-)
One other thing to check is that if the page is published you have a template selected for the page or you will also get a 404 error.
The reason it was doing that was because the domain name wasn't setup correctly.
I was using a custom domain to host the site, and umbraco was obviously not matching the incoming request to a site in the CMS.
By going to the Site and right clicking -> Culture and Hostnames, I could set the hostname.
As per this answer: Umbraco configured with IIS 7 having hard time with the site URL?
Did you set your hostname in Umbraco?
Right click on the site root in your solution and click "Culture and hostnames"
Fill out your hostnames and save
You could try and force a full republish and refresh of content, use http://example.com/umbraco/dialogs/republish.aspx?xml=true assuming your installation wnet well and you can see the pages in the content area. As for the 404 you need to set one your self and assing it in the umbraco config file.

Sharepoint 2007 - Missing sites after after content database attachment

I have a new SharePoint server which I've attached a content database to. The new server is configured like the old one (same deployed solutions, settings, etc) and there was no errors when we attached the content database (which is a copy of the old server's content database).
At first, it looked fine, the site on the new server was working. But then we discovered that som sites couldn't be reached, when we try, we'll get a "404 File not found" error. The strange thing is that we can clearly see the sites in Manage Content Structure but when we try to open them, we get errors.
The error only occurs for a site called "Webbplatser" and all of it's subsites. The other sites, like Sök is working just fine. I can browse all the sites under "Webbplatser" without any problem from "Manage Content and Structure". I can see the default.aspx page for all the sites but when I try to open any of them, I'll get the 404 File not found error.
Anyone recognise this error? We are using Sharepoint 2007. Please help.
Sounds like there could be some site solution missing, perhaps even custom master pages or page layouts that were added in the 12 hive on which the Webbplatser site is reliant.
Use the the url of the webbplatser site and tack on the _layouts/settings.aspx to see if you can get to the site settings and see what is set up there. Failing that I'd do a directory tree compare between your old server and the new one, focusing on the 12 hive.

Umbraco URLs disappeared

I have about 50 pages in my Umbraco site and for some reason all of the URLs went from being based on the site structure to either just # or just the id of the page, like /1083
What would have caused that to happen and how can I fix it now?
Also, it would be nice to understand how these URLs get created if there is some method somewhere that manages it or they are in the database somewhere.
Delete the App_Data/umbraco.config file and then go into the admin and republished the whole site.
Thanks #Pauli

Resources