May 2015
Intermediate to advanced
234 pages
4h 18m
English
In this recipe, you'll learn how to use a different domain name for the mobile pages of your website. For example:
mysite.com for the normal websitemymobilesite.com for the mobile versionMake sure that the SitePreferenceHandlerInterceptor interceptor is declared in the Spring configuration. Refer to the Switching to the normal view on mobiles recipe in this chapter.
Follow these steps to use a different domain name for the mobile version of the website:
SiteSwitcherHandlerInterceptor bean initialized with the standard() method with your main domain name, mobile domain name, and the value for the Set-Cookie HTTP header field:@Bean public SiteSwitcherHandlerInterceptor ...
Read now
Unlock full access