url-rewriting homepage

Kenny Deblaere asked on September 19, 2016 14:40

Hello

My site has as url domain.com/nl-be/home. The part nl-be comes from the setting: Use language prefix for URLs. Is there a way, when surfing to domain.com, I'll see the homepage, but the url doesn't change.

So when surfing to domain.com, as url, I want to see domain.com, but when surfing to domain.com/nl-be/home, I also want to see domain.com.

Kind regards

Kenny

Correct Answer

Jan Hermann answered on September 20, 2016 14:33

That's not an alias it's the main document url that is unique through all pages, so if you specify them for different cultures you get those extra numbers appended. If you need same path you need to specify it in Page alias (first property in that section) or define an alias for all culture versions in Page aliases section.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Jan Hermann answered on September 19, 2016 14:55 (last edited on September 19, 2016 14:55)

When you enable culture prefixes, it always adds them by default, so you can have domain.com/nl when you access both domain.com or domain.com/nl/home, but not the domain root.

0 votesVote for this answer Mark as a Correct answer

Kenny Deblaere answered on September 19, 2016 15:11

Jan

If I understand correct, there is no way (for example through aliases), to get domain.com?

0 votesVote for this answer Mark as a Correct answer

Jan Hermann answered on September 19, 2016 15:17

Yes, if you configure Kentico to allow urls without language prefixes (very next setting) you can setup a rewrite rule on your server to redirect to root of your domain when anyone requests /nl or /nl/home.

0 votesVote for this answer Mark as a Correct answer

Kenny Deblaere answered on September 19, 2016 16:00

Thank you for the information

0 votesVote for this answer Mark as a Correct answer

Kenny Deblaere answered on September 20, 2016 11:24

Jan

I'm creating my own aliases for the pages, but when I'm giving a / at Path or pattern, in my French culture it sets /1. Is there a way to have the same path for different cultures?

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.