May 2015
Intermediate to advanced
234 pages
4h 18m
English
In this recipe, you'll learn how to use an m. subdomain for the mobile pages of your website. For example:
mysite.com for the normal websitem.mysite.com for the mobile versionSome advantages of an m. subdomain are:
Make 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 m. subdomain for the mobile version of the website:
SiteSwitcherHandlerInterceptor bean initialized with the ...Read now
Unlock full access