View Single Post
Old 08-23-2019, 10:45 AM  
CurrentlySober
Too lazy to wipe my ass
 
CurrentlySober's Avatar
 
Industry Role:
Join Date: Aug 2002
Location: A Public Bathroom
Posts: 38,546
Is there a 'default' line to add to .htaccess to redirect mobile users to a subdomain?

OK, I know that my site *should* be mobile friendly, but fuck it - Google says it isn't and sends me emails complaining. When I make a change to make google happy, my site looks shit on a normal web browser and 75%+ On average of my visitors are not mobile users anyway...

So I want to dupe the site to a 'm' subdomain - m.mysite for the mobile version. Then I'll just do a dupe of the site with all the changes google wants me to make and leave my perfectly good site for the people on desktop etc, as god intended it...

Duping the site = No Problem.
Making the mobile m. subdomain = No Problem
Making all googles changes to 'new' version of site = Pain in the ass, but dooable via search and replace etc...

But what's the line to go in my .htaccess? I have googled, but all the results are from 2012 etc, and obviously the worlds moved on a bit - What's the line for 2019 / 2020 that tells anyone on mobile who hits the site, to goto the other version automagically? Spanks 4 UR time...
__________________


👁️ 👍️ 💩
CurrentlySober is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote