Start page accessible from the outside by two url:s

Vote:
 

We have a three site setup with three start pages.

This can be accessible from the outside as (same page in epi):

www.url-to-domain.com/

www.url-to-domain.com/startpage-url/

Which means every page is accessable by two url:s which is not a great for google etc.

How can we avoid this?

#208451
Edited, Oct 24, 2019 11:06
Vote:
 

You can use canonical url feature. that let search engine crawlers force to index by that url (added in canonical meta).

See this link for more info.

https://moz.com/learn/seo/canonicalization

https://support.google.com/webmasters/answer/139066?hl=en

#208456
Oct 24, 2019 13:11
Vote:
 

Yes we have this already.

But we still do not want the dual url:s to be a accessable.

#208462
Oct 24, 2019 14:24
Vote:
 

I think in that case you can use the Partial routing. That may be a good option to omit the home page name in url. Just like we do to omit the containers (folder).

#208471
Edited, Oct 24, 2019 15:08
Vote:
 

Ok do you have any example code or documentation how to use it?

#208502
Oct 25, 2019 7:27
Vote:
 

Hi,

I suggest you to not override the default functionality specially for the home page.

Instead of this you can exclude the /home from the search engines using the robots.txt file. Define the URL /home in the robots.txt and search engines will not index this page.

If you want to go with partial router then you can refer below blog post-

http://www.jondjones.com/learn-episerver-cms/episerver-developers-guide/episerver-routing/how-to-set-up-a-partial-router

Thanks

Ravindra

#208549
Oct 26, 2019 16:26
Vote:
 

Hi,

Hm I doubt this is the most efficiant way to go.

There must be a simpler way about it, but lacking the information.

Will suggest this to the customer. But I'm pretty sure they will not accept it.

/ C

#208555
Oct 28, 2019 10:08
Vote:
 

Hi Carl

Unless your client hands out those specific start page URLs, or tells Google (and others) about them, I don't think anyone would notice. And if you even include canonical links on pages (including the start pages), nothing should happen if search engines came across such link.

Amending Episerver routing logic to removing those extra URLs would probably be too much effort and complexity. You might risk breaking something else in the process.

#208563
Oct 28, 2019 12:23
Vote:
 

You could also install some kind of redirect manager, or redirect using IIS URL Rewrite.

#208567
Oct 28, 2019 13:03
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.