Since more and more internet traffic is coming from mobile devices, it is now time to turn each of my Drupal 6 sites into a mobile site. The complicating factor here is that I use the Boost module to make my sites to load faster. Searching the internet, I found lots of article about the Mobile Tools module, mobile themes and the Domain Access module. I also found articles about the main “duplicate content” SEO problems with mobile sites and the solution with canonical URLs.
Before you go through this step-by-step tutorial for creating the ultimate Drupal 6 mobile site, make sure that you first read the introduction to this mobile site tutorial.
OK, here we go.
Post any questions, observed errors and possible improvements in the comments below.
We start with the beginning: creating the sub-domain m.example.com.
Add the lines below to your htaccess file before the “Boost” section. You can find the same code in the .txt document that is attached to this page.
These lines are applicable for a single-site (non-multi-site) set-up and a mobile sub-domain.
Replace “example.com” with your domain name.
I refer here to a multi-site configuration in which several sites/domains share the same Drupal code-base, while each site has its own database. Here I assume that you know how to create a multi-site installation that works well.
See here a screenshot for the Advance Settings of the Drupal Domain Access module.