Skip to content

Conversation

@ivan-ionut29
Copy link

Hi, with this option there would not be any redirect to default language ONLY for baseUrl;

In your current version(if your default language is en)

/ -> redirect to /en

But with this option true there will would not be any redirect ONLY for baseUrl.

@mikehaertl
Copy link
Collaborator

@ivan-ionut29 I haven't looke closer but have you tried to use $ignoreLanguageUrlPatterns for the base url?

https://github.com/codemix/yii2-localeurls#excluding-routes--urls

@ivan-ionut29
Copy link
Author

Ok, in my case there are a few complications, for example the route for base url (site/index) has to render en/index.php and ro/index.php. Where ro is the directory and the default language. I'll think about a few other solutions and I'll get back here with my my conclusions.

@ivan-ionut29
Copy link
Author

Ok, after many tries, this rule worked fore base url.

'#^$#' => '#^$#'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants