“I still suggest you call
this page 42Lab.
Works for both of us!”
- Joey

WordPress 101: How To Redirect Mobile Users To Mobile Sites

WordPress since its inception has always acted as the great equalizer of the internet. Not only has WordPress revolutionized Content Management Systems as a whole, but it has also empowered thousands of creatives around the world. It is this empowerment that has led WordPress to acquire a dominant position in the CMS industry.  

What is more surprising is how well the world has evolved around the challenges and opportunities of the internet. Today countless people around the globe have their voice on the internet. This unprecedented rise of people from desktop to mobile couldn’t have been possible if not for brilliant tools like WordPress. 

WordPress as a Content Management System has brought a change on the internet that has been ground-up. Now everybody, even people who have no technical background can create amazing websites. This development has led to such people to not only survive on the internet but thrive! 

In this amazing underdog story, the only hurdle is the rising complexity of the internet. Today it takes way more to establish yourself on the internet than just a website. Therefore you must know all the bells and whistles that make your online presence have that ‘wow’ factor. 

WordPress Trick – How To Redirect Mobile Users To Mobile Sites?

One of the most fundamental ways the internet has changed in the last couple of decades is the shift it has experienced from desktops to mobiles. Today it is critical for a business to the functional mobile version of their website to not lose on key traffic generation. 

Therefore to aid countless bloggers and creative individuals on the internet who use WordPress and want to direct their traffic to their mobile site we present a quick hack. The followings steps detail on how you can redirect your mobile traffic to your mobile site: 

Step 1 – Add the following commands snippet to the .htaccess file:


RewriteEngine On

# Check for mime types commonly accepted by mobile devices

RewriteCond %{HTTP_ACCEPT} "text\/vnd\.wap\.wml|application\/vnd\.wap\.xhtml\+xml" [NC]

RewriteCond %{REQUEST_URI} ^/$

RewriteRule ^{REQUEST_URI} [R,L]

Step 2 – Save your .htaccess file with the changes made to automatically redirect mobile user traffic to your mobile website. 


Previous Hack – How To Remove Help & Screen Options From Dashboard?

42 works

Exploring the Future of Apps with Apple

Read Blog

Dream Bigger. Work Greener.
Explore Our New & Sustainable Workspace

42 works
Get 42Works Blog updates in your Inbox!

    Virginia United States