Ticket #254 (closed question: fixed)
Language support and url rewriter
Reported by: | magne.ingvaldsen@… | Owned by: | miroslaw.jedynak@… |
---|---|---|---|
Priority: | major | Component: | MobileUrlRewriter |
Keywords: | Cc: |
Description
We are supporting different languages on our site, and are now planning to make a mobile version of the site. We support different languages by appending the language code to our url, eg. somesite.com/en. This module looks perfect for our case, but I was wondering how this would work with SuffixMatchingUrlRewriteRule and language codes in url. Is this going to be an issue?
Change History
comment:1 Changed 11 years ago by miroslaw.jedynak@…
- Status changed from new to closed
- Resolution set to fixed
comment:2 Changed 11 years ago by magne.ingvaldsen@…
Thank you for you answer.
Could this be done without a subdomain(eg. somesite.com/en/Mobile or somesite.com/Mobile/en)?
Have tested the module a bit now, thanks for a good module!
comment:3 Changed 11 years ago by miroslaw.jedynak@…
Most common scenario we use in our projects is to use mobile (m.*) subdomain, but we also support scenario with changing query path
Check this:
https://www.coderesort.com/p/epicode/wiki/MakingWaves.MobileUrlRewriter/PrefixMatchingUrlRewriteRule
I'm quite sure it works fine with languages as well
comment:4 Changed 11 years ago by magne.ingvaldsen@…
Ok, thanks again!
It is an error in the example configuration on this page:
https://www.coderesort.com/p/epicode/wiki/MakingWaves.MobileUrlRewriter/AgentBasedSubDomainMatchingUrlRewriteRule
The type MobileDomainAndAgentUrlRewriteRule does not work, but AgentBasedSubDomainMatchingUrlRewriteRule works! :)
Default EPiServer implementation uses suffixes for language selection. Check: http://makingwaves.com/en/ and http://makingwaves.com/no/ or http://m.makingwaves.com/en/ and http://m.makingwaves.com/no/ for mobile sites.
It won't be an issue as you see.