Okay then, let’s get to it. We are going to be using the JS-Redirection-Mobile-Site script found at Git Hub here. Now, before you click that link and get yourself all confused, I’m going to break down everything for you. Okay, first things first. Download redirection-mobile.js here. Just highlight the text, copy it, and then create a new text document in a folder in your site called “js” and name it redirection-mobile.js. Good, we are almost done. Now, in the <head> section of the page you are looking to redirect, paste this:
<!-- Mobile redirect script by https://pagecrafter.com -->
mobile_url : "urltoredirectto.com",
Easy stuff. Now replace “urltoredirectto.com” with, well… The URL you would like to redirect to. Now upload this to your server, and you are good to go!
What this will do is redirect most mobile visitors (but not tablets) to this URL. And it works great, because if they go to that mobile site, and then click a link to come BACK to the page they were just redirected from, it won’t redirect them again, allowing them to view the regular page.
I’ve had many requests for instructions on including a tablet redirect as well, so I’m going to show you how to do that. Setting tablet_redirection to “true” will redirect tablet users as well. If you would like to specify a separate location for tablet users, you can do that by entering a value for “tablet_host”. So the code will now look like:
<!-- Mobile redirect script by https://pagecrafter.com -->
mobile_url : "urltoredirectto.com",
For a full list of parameters you can use, view the github page I linked to earlier and find the readme there, it has a detailed explanation of everything. I hope this helps someone avoid all the trouble and work I had to go through to figure this out! Thanks for stopping by.
You can define the full URL of the page to redirect people to, yes. However, if it’s not the same site, I’m not sure clicking the “classic view” will fix it because the code is on two separate sites.
You could try adding a URL parameter that the original site picks up and uses to prevent the redirect from happening again.
I want to apologize myself for asking stupid question – one look into the github code explanation offered me all the answers and possibilities!
Delete my obsolete question, lol
Thank you very much for sharing!
Hah okay, I’m glad you were able to figure it out!
This is a great little tool. I’ve tried to figure out how to implement it so that it keeps the domain but couldn’t figure it out:
https://example.com/mobile_index.htm (but I only enter the “mobile_index.htm” in the webpage)
I’ve been trying to redirect in a way that Google doesn’t get all fussy about having the page redirected. I’m hoping this fixes it.
If you can point me in the right direction to have it bring the domain in automatically, I would appreciate it. Thanks!
I’m not sure I understand what the problem is… What you are describing is how it is supposed to work. What are you hoping to have happen that isn’t happening?
Hi Brian, Hope you can help. I have been trying to implement the script but I’m running into a difficulty. I have an https desktop site. I also have a m. site on Dudamobile which I set up a while ago. I have put the script on my hosting server and incorporated the redirect url in a page. It seems to be trying to redirect to the m. site but when I look at the address it is trying to reach it has https://m. which is why I guess it cant connect. The m. site is an http:// site without an SSL. Any ideas? Paul
You should be able to add the parameter:
And that should solve the issue. By default it uses the same as the parent page, which I’m assuming in your case uses https.
Thanks Brian, Do I put that line in the code on the webpage just before the line with the mobile url or do I need to alter the code in the script? Paul
I wonder if you can help me please? I have followed the instructions you give for the redirect and have ended up with a very strange problem. I put the code, (from above), into the home page I use for experimenting at https://www.sellick.co.uk The redirect is supposed to go to: https://www.fork-lift-training.co.uk/m/home.html
When I try it, the page seems to freeze but then I noticed it was trying to get to https//www.fork-lift-training.co.uk/m/home.html. (I.E. WITHOUT the : )
Obviously I checked to make sure I had included the : in the URL and I have
Can you think what might be wrong? Why is it missing out the : ?
I would be very grateful if you would take a look please as it’s driving me mad:-)
Hi, Tony. i had the same problem and I solve just by removing the http:// part. So I redirect it to http://www.mydomain.com/mobile
I know it’s not elegant, but it’s functional. 😉
Hope it helps.
PS: If you solve it in some other more elegant way, please let me know. BTW, my site is here: http://www.icomoscr.org/m/ and my email is melvin.campos AT yahoo.es
Sorry: where it says http://www.mydomain.com/mobile it should read http://www.mydomain.com/mobile
Is there a way to do this in the opposite direction (as in not allow desktop users on to the mobile site)?
Thank you, I tried many different things before finding your simple solution, now my redirects to the mobile subsite and working perfectly!
Glad I could help!
HI Brian, We’ve invested heavily in a mobile first PWA for our site. The problem is that it looks horrible on desktop.
so without scrapping the site entirely, we’d like to re-direct desktop viewers only.
Is there a way that this can be utilized? we are using hugo + netlify for our pwa with CMS.
however we want to do a desktop.mydomain.com for desktop users and that would be hosted on wordpress.
can we hire you to do this? (we are the small busines, not developers)
It works great.
Thank you so much.
Thanks so much Sir.
Please I want to know if the same data on my primary domain will be automatically generated in the subdomain when users are redirected.
If not, please how can I achieve that?
Hi Brian…I’m having issues with the redirect code. I copied and pasted the snippet to the beginning of my html(body) page and created the js code page(copied it from the github link) and placed in into a newly created folder labeled “js” and uploaded it to my website with all of my other site files. I want to redirect persons using mobile phones, but nothing is working; my site is not redirecting on my phone to my mobile site. oliviadrakestudio.com needs to redirect phone users to m.oliviadrakestudio.com. At first I had a redirect set up on GoDaddy, which redirected everyone from the main site to the mobile but I since have removed that. Please help!
Just as I posted my question I noticed my error. I had missed the last line of the code!
I knew it had to be something simple. It seems the something simple was me!
Thanks for this! I put on my main site and it works perfectly!
I am trying to put it on another page ( https://tradesharktennis.com/bundle.htm ) but am having a problem. When I add the code to the section it seems to stop the page loading. All I see is a blank page. I am probably missing something really simple
Is there any possibility to redirect users to desktop version if they will be on mobile version from desktop version?
Hello, great script and works great on mobile devices, however, my tablet (iPad 2017) is being redirected as well. I tried all different things such as disable tablet redirection command but it is still being redirected. I also tried redirecting tablet to a different .php file, but it is redirected to the mobile site. It is almost like the ipad is being detected as mobile phone. Any idea why this is happening? Thank you
Hi Brian! Thanks for the clean solution! Question: How could I flip things so that it redirected visitors that WEREN’T on a mobile device? My hope is that if someone tries to access the index/home page on a desktop, laptop or tablet, I want to redirect them to a static page alerting them that the site was designed and optimized for mobile devices. Any ideas?
Yes, I believe that is possible. Just read the directions in the shared resource and I believe it will give you the right options you need.
Hey Brian thanks for this!
Quick Question… I would like to use this script in my hosted HTML folder to redirect users to 3 specific sites (Desktop, Mobile, Tablet).
I see you have a version for Mobile and Tablet HOWEVER the framework the sites are built on does not allow for custom code…
So is it possible for me to have this query / redirect placed in my root HTML folder (currently with Media Temple) and then have it detect mobile, tablet or Desktop and serve up the correct URL for each of these viewports? (fyi I am using ReadyMag to build my content rich sites but they have some holes with their mobile fallback and code injection)
Does this make sense?
I think you would be able to do that, yes. You’d just create a basic HTML page in your root called index.html and make sure it has priority over whatever the CMS is (i.e. make sure that the “index.php” from your CMS isn’t loading first, or it won’t work).
Then just add the code in and make sure it redirects properly.
How would I add it to the header of the page in WordPress? I have an addon that adds to the header or body but when added to the header it did not work?
If the plugin actually is adding to the code to the “head” section of your site, it should be able to work. Double check that you’ve added all values correctly and try again.
Thanks Bro this worked perfectly!
Chafik // From Paris
thanks for great utility.
Any chance it could be modified to do frameforwarding? I would like to redirect but sill have main url displayed
Not using this method, I don’t think. You’d have to find a different solution.
You are a hero, Brian! Thanks so much.
Superb! I’ve tried several methods, none worked. Thank you so much!
I tried this on my client’s web, and it worked just fine. THANK YOU! GENIUS!
I have tried your solution but it is not working. I am new to muse so I may be a bit slow.
1) I copied and pasted the above code into a text document.
2) I uploaded it to a new folder in the root directory named js.
3) I added the code to the section of adobe muse.
4) I added this ” sigmalambdaxi.com/phone/index.html
Then I am not redirecting and Google is not able to recognize the mobile site.
Please advise. I checked on Adobe’s site and they are not helping. I am very lost. I spent hours on this project and can’t get a solution.
You seem to have set up the .js file properly in the js folder, but I don’t see the necessary code on your site to load it up and actually specify the redirect. It needs to be in the header of your page. I don’t know anything about Muse though, so I’m not sure what you need to do!
Just make sure you add that small snippet to the header of your website.
Just figured out how to do this. Working fine now.
I am trying your script on my site. To make things clear do I upload the new folder mobie-redirect.js to my server on the domain name I want to redirect it to as anew folder.
I have entered the redirect script into my html code in the Here
Getting problems with it to work .
Hope you can advise
Thank you Brian! It worked the first time, out of the box!
The redirection works great for my site root. ex: bitsongdev.com takes you to bitsongdev.com/mobile/index.html on a mobile device.
Is there any way to make it work for a sub page? ex: bitsongdev.com/about.html takes you to bitsongdev.com/about.html on a mobile device, not bitsongdev.com/mobile/about.html
Your Tutorial and Script are definitely SUPER.
Now I am consern about the position of my Site in Google.
I have my Web Site (www.namebadgesplus.org/index.html).
Now I created mobile-friendly page similar to my index.html.
My site was on 1st page in searching Google
by some keys.
Now (after Google’s mobile issue) my
Site is on the 2nd page that is not good.
My question is:
1) Should I name my mobile-friendly page, for example,
“mob_index.html” and use my desktop page “index.html”
(as before) with redirection to “mob_index.html” ?
2) Make subdomain like http://www.m_namebadgesplus.org and
place my new page “mob_index.html” over there.
Then use redirection to this subdomain ?
Which case is better for position of my Site ?
Thank you for your reply.
Simple method using do_js_redirect(domain, is_l2l) function. You only need to enter the root domain is the script code will be automatically redirected to m.domain.com when visitor by mobile devices.
I just can’t get this redirecting working for couple of galaxy android tablets, Galaxy Tab Pro 10 and Galaxy Note 8 (I thins). Works fine with IPad.
Tried with and without tablet_host, with and without http part in address.
tablet_redirection : “true”,
mobile_url : “http://xxx.fi/m”,
tablet_host : “http://xxx.fi/m/”
What is the site URL? I may be able to take a look and let you know why it’s not working.
Awesome! I had looked and tried numerous other tutorials with no luck and this worked!!! Thanks so much!
Thanks for the response Brian. Unfortunately that didn’t work either.
Ah! I think I found your problem. You redirect-mobile.js is not complete. You are missing the final “};” at the very end of the document. Try adding that and see if it works. Just to be safe, maybe download the newest version, and make sure you paste that entire thing in. Let me know if it works!
Yes!! Success! Thanks so much! I was baffled and had sort of given up. Not sure how the }; got missing. Thanks again Brian!
Thanks so much for posting this tutorial. For some reason it is not working for me. My website is 5QM.us and I’m trying to redirect to 5QM.us/mobile. I’m at a loss now. any ideas?
Try replacing “http://5qm.us/mobile/index.html” with just “5qm.us/mobile/index.html”
I thought it worked either way, but perhaps not. Let me know if that does the trick!
Great script – and thanks also to Steve Wheller – I took the liberty of using your website as an example to help me know it should be working 🙂
A curious thing – it works like a charm in Safari, once I made sure I’d completely exited from the website – but in standalone mode starting off as the mobile site, doing “back” then re-opens as the mobile site in Safari, and then second time around works as expected, ie. back to the full site. I suspect it may be because it’s opening effectively in a different “browser”?
Thanks for posting this, this is the most successful code I’ve used so far!
The only problem I have now, is that the colon keeps disappearing, making the URL invalid when my mobile redirects to the mobile site.
This is my site: shaggy-licious.com/ltz/index.html
At the moment, I am redirecting it to Facebook mobile site. Ideally, I actually want to redirect it to shaggy-licious.com/mobile/index.html
Is this possible? Can I write mobile_url : mobile/index.html” ? This doesn’t work either at the moment by the way.
My second question is the tablet redirect. I put it above mobile_url as you suggested previously to another poster, but it is saying it has syntax error. I haven’t tried it on tablet yet, as I don’t own one at home, but please will you tell me how to fix the syntax error and how I can make it work on tablet?
Sorry for asking so many questions but if you would help, that would be awesome! Thanks again for sharing.
Many thanks and best,
Hi Brian hope you can help me.
I’m trying to find where my tag is located in cms made simple so I can paste a mobile redirect script. Been looking for days. Thanks in advance.
I’m not at all familiar with CMS Made Simple, so I couldn’t tell you where that would be. If there is a section for adding extra code to the header, that would be where you would want to put it. If there is an analytics code section, that MAY work too, but it depends on how it functions.
Im not sure what I’m doing wrong here. It was working, but now it is not. Could you please advise me in where I went wrong?
It appears to be working great. If you ever go back to the desktop site while visiting the mobile one, you will not be redirected again. Otherwise it would just keep bringing you back to the mobile version whether that’s what you wanted or not.
Thanks a lot for the article. I would be trying it tonight and I am pretty much convinced it WILL work. One thing I need to ask though – What code do I need to make the mobile user see the Full Site – like View Desktop Version – while still browsing through mobile phone.
I believe that’s all covered in the documentation from the code’s source. Take a look, they even have some examples illustrating how to use it!
Thanks for awesome script. Can you tell me in WordPress – where to put the redirection file and where to place the script? Is it in template directory or root domain? I tried different things and I’m a bit lost.
Thanks for your help.
It’s all going to be in your template directory. The script goes in your theme’s header.php file. Then redirection-mobile.js would go wherever you want in your theme folder, but you are going to need to change the link to reflect that. For example, if you put that file in a folder in your theme directory called “js”, then you would most likely need to change src=”js/redirection-mobile.js” to src=”http://yourdomain.com/wp-content/themes/yourthemename/js/redirection-mobile.js”
Works like a charm. Thank you Brian. You’re a STAR!
Hi! I’ve a built a parallax scrolling website, and now need to develop a non-parallax, mobile version in a separate html document. I looked all day and this seemed like the perfect solution. Only problem is, I think it’s redirecting, but I’m getting a 404 error. Any ideas what could be wrong? Thanks a bunch!
If you are getting a 404 then you either entered the url wrong in the code or your page doesn’t exist. Check your address bar and see where it’s actually redirecting you, and how that URL differs from the intended one.
After experimenting with fluid grids and media queries…which are okay…but imo creating a separate folder website with just mobile screen size code I figured would be easier. So I looked for days for a tutorial on how to do this & couldn’t find a non-complex or a free one. Then I found this!! THANK YOU SO MUCH. It worked & the way you explained it made it easy as pie! Thank you again Brian. You now have a new fan here!
That’s great, glad I could help!
Thanks for the great script. I now have this working on my site weddingphotographer-wales.co.uk and it redirects me to the mobile site when viewing on my mobile but when click on my link to go to the desktop site it doesn’t work it just keeps me on the mobile site.
Any help appreciated.
Worked great when I tried it! I’m not sure what issue you are running into as I am not able to replicate it.
I have installed the js as per your instructions and it works perfectly.
I have done a lot of work before with the same js but without results.
Thanks a lot!!
I have a problem though and I hope you can help me in solve it.
I have created the following script
redirection_param : "mobile_redirection",
mobile_prefix : "www.m",
keep_path : true,
keep_query : true
because I wanted to have people using a link like whatever.com/page_1/page_2/page_3 to be redirected to m.whatever.com/page_1/page_2/page_3 and not to m.whatever.com
Unfortunately this does not happens.
What happens is as follows:
So if the path is longer then one slash the redirect is always to Home.
Can you tell me what I should do to have the redirect complete and not truncate?
Hmmm…. To be honest I’m not really sure! I’ve never seen that issue, and truth be told, I’ve really only dealt with redirecting the home page. Were you able to get this working? I would love to see how if you were!
I got crazy trying to use the same js but no way.
Then I got to your blog, followed your isntructions and voilà. It works.
I still have a problem though.
I want to to redirect also If the user C and you want to redirect him to “mobile.whatever.com/page1”:.
I have this script in my html_header
redirection_param : “mobile_redirection”,
mobile_prefix : “www.m”,
keep_path : true,
keep_query : true
but If the user accesses to “whatever.com/page1” it is redirected to home page “whatever.com/
Can you tell me what <i am doing wrong?
Sorry about my typing. I am Italian and my english is not that good.
Please read the same phrease as:
I want to to redirect also If the user accesses to “whatever.com/page1” and you want to redirect him to “mobile.whatever.com/page1”
There is no way ot correct a post
Thank you for your good job ! I put the code in my webpage and it works..
I just need your help because the redirection doesn’t open a new window, it means that when a smartphone is detected, the mobile internet site opens in the same window and it’s for me a problem.
if you go directly on m.reparer.ch with a smartphone you will see that the presentation / layout is not the same as when we’re going first on http://www.reparer.ch and then goes automatically by m.reparer.ch
Thank you very much !!
When a mobile visitor arrive at the site, you don’t WANT them to open a new window. It’s much harder for mobile visitors to use tabs. I may be misunderstanding you there…
Thank you for your reply. I don’t know to explain the problem. When I go directly from my smartphone on m.reparer.ch all is bigger than when i go with the smartphone (iPhone) before on http://www.reparer.ch with the redirection on m.reparer.ch
The issue you are dealing with might be because you are using frames, which really aren’t the best practice ever. Instead of using frames, you should either set the domain to redirect with masking or recreate the site there. Redirect with masking is the best option. Frames are just bad news.
It worked, that was easy, that you so much Brian
Thank you so much for the great redirect script. It did that trick and was easy to use. Teddy – TruWeb Host Mobile Websites
very very very big THANK YOU for this tutorial!
Tuomo, from Finland
thanks.. its really helpful
Excellent tutuorial. Only one problem. this is my desktop site http://oiseausalon.com and this is my mobile site http://oiseausalon.com/mobile/index.html. The mobile Link to Full Site works on the mobile index. On the other files, the Full Site link goes to the mobile index the first time clicked. After that the link works correctly and goes to the desktop index. I have not been able to figure out why and would greatly appreciate your help.
It’s doing exactly what it’s supposed to do. I believe the script uses whether you’ve been to the mobile index page as an indicator of whether you need to be redirected. If you’ve been to the mobile index and you choose to go to the desktop site, it won’t stop you because it thinks you are choosing to view the desktop version instead.
But if you get to the desktop index from some other page, when you arrive, it sees that you’ve never been to the mobile index and sends you there. I believe there are more parameters and documentation available at github to allow you to prevent redirection if they’ve been to ANY mobile pages. This tutorial only covers a home page redirect which is more basic.
Thanks so much for the excellent explanation. Hopefully I’ll find the solution at github.
great script, ive put it on http://www.fonefunshop.co.uk
one question though i would like to point it to http://www.fonefunshop.co.uk/redirect.htm and on this page a a link to http://www.fonefunshop.biz and a link that will allow use of the page the user landed on in full screen
what code would i need for the latter link to allow the user to vire the standard page they initially landed on from google?
I guess I’m a little confused on what you are asking… But I think it’s possible that what you are asking is how you can prevent users who go BACK to the normal homepage after being redirected from being redirected once more. If that’s the case, then you shouldn’t have to worry about it, if users return again, it won’t redirect them again. It only redirects them the first time, in case they WANT to view the desktop version!
thanks for doing this.
this code should be put in desktop page or mobile page ?
You put the code in the desktop page, because all it does is check if they are mobile, and then forwards them to your mobile page if they are. It wouldn’t do much good on a the mobile page!
THANK YOU! THANK YOU! THANK YOU!
I too searched for HOURS ….was using the same exact script….but, for some reason, the way you explained it took me 2 minutes to accomplish.
It works perfect! Thanks again!!
Hi Brian, excellent code thank you!
One question though… It works perfectly on my iPhone5 but not on both my iPads.
When I enter the full address of the page where I should be redirected to in my iPad’s browser, the mobile version of my webpage shows up as it’s supposed to.
What could be the trick?
Adding the line:
tablet_redirection : “true”,
above the line mobile_url : “urltoredirectto.com”, should redirect tablet users as well. Let me know if it works!
A client’s hosting didn’t support php which is what I have been using for redirection. This was an easy solution. Why can’t everything be so straight forward?
Thanks so much,
Brian, first off let me thank you for putting something like this together. Second, I really hope you still actively watch your blog otherwise I might pull my hair out trying to figure this out! 😛
Either or, I’ve copied the js code and placed it in a file named redirection-mobile.js and placed it in a folder named js as described. I then modified the index file and put the code mentioned above, yet it still doesn’t redirect me. Just being stupid I put it in above (first test) the section, then below (second test) and still no redirect. I don’t currently have a mobile site setup so I put in something like m.facebook.com in order to verify the redirect worked.
The website I’m making the change to is http://www.oakridgesuites.com and using index1.html (not the primary index file)
Any help would be greatly appreciated.
Thanks for visiting!
When I tried visiting http://www.oakridgesuites.com/, it was just blank. Do you currently have it uploaded? I can’t really help you without being able to see the code!
It’s http://www.oakridgesuites.com/ (htm not html) Sorry about that!
No problem! Looking at your code, you need to move your script so that it is betweenand somewhere. Currently you have it before the head, where scripts can’t actually go!
Hey Brian! I created a mobile site real quick last night and setup http://www.oakridgesuites.com/ with the redirect code in the index.html in the section. I still can’t get it to redirect. I copied the js folder with the script to the test2 folder as well (since that’s where it appears to be looking) and still nothing. Ideas?
The only thing I might add, is that I did have to create a new subdomain, and point it at my mobile folder, and do a redirect from m.RoofRinseRun.com to http://www.RoofRinseRun.com/m. But that’s easy compared to all the hard stuff you explained.
Thanks so much!! I spent hours trying to figure out how to get my Muse-created mobile site to become the destination page for mobile users visiting my regular (non-Muse-created) desktop site. Nothing worked at all, but now your advise works perfectly. Thanks so much for actually explaining what to do!!
I can not get the code to work for some rreason. Please help. Thank yoy
For some reason, the code is not working. Thank you
Tried what you suggested, still not working. Not sure what I’m doing wrong. Thank you
Brian your solution is just amazing. I was wondering how to redirect mobiles but not tablets, and how to let them see the desktop version if they want… and you give me everything in a 1 minute reading article. Thank you very much
Glad I could help!
Thank you very much, Brain. The process gave me a headache until I found the js script and your tut.
The solution seems great due to its simplicity. I have one question: can the mobile URL have the configuration (form): mysite.com/mobile?
You can enter whatever you want for the mobile URL, all this code does is send visitors to that URL if they are on mobile. It’s up to you to actually PUT something at that location.
I must be very stupid, because I do not get your script to work. I’ve added this code in the heading of my page:
mobile_url : “www.webbouw.nu/mobile/smartphone/index.html”,
mobile_prefix : “http”
On the desktop and on my HTC One Android mobile, nothing happens. When I enter the URL on my HTC manually, the mobile site shows up. So the redirection does not work!!
You’ve made two mistakes that are easily fixable, based on what I’m seeing on your site when I check out the code.
1. You’ve placed the code in the body of your HTML document, not the head. Make sure you place the entire code before the tag.
2. You either haven’t uploaded redirection.mobile.js or you don’t have it in the correct place. It should be in a folder called “js” in the ROOT of your hosting directory. In other words, when you go to this link you should see the code (dead link removed)
If you fix those two problems your code should work!
About the two mistakes:
1. I use a CMS, generating the HTML-code for me. It does not allow to put the code outside the page body and I do not want to change the generated code, because it would create a maintenance issue. (The site you saw is just a test site) So I’m looking for a solution that will work from inside the body part.
2. You were right. I had my reference correct, then tried another possible solution and later copied your sample code into my CMS again. So I’m not using the directory “js” to store the script, but “downloads”. I know this works because I’ve added some messages to the script and they are displayed.
Can you explain why this code will only work from the head section and not from the body? Thanks!
Thanks a lot. I could not figure out how to do this for last few days and now it was so easy.
thanks for the tutorial. I did as you wrote but I have a problem: a page says “I cant visualize the page”.
The mobile website works great, so the problem must be inside my index page of the main web site. It is made by 2 frames… could it be that the problem?
It sounds like you are probably running into an issue with the frames to me. Are you positive the problem wasn’t there before you added this code, and then IS there now that you’ve added it?
Thank you for doing this. It took me several hours to find but only a few minutes to implement : )
Hi Brian, for complicated sites such as accountants and lawyers the user might well have found an inner page of the desktop site 1st and it is now considered best practice to not divert all mobile users to the mobile homepage… would this involve inserting the code on each of the relevant pages?? Thanks for your help. Andy
Right, most likely you would create a redirect that merely redirects users to a subdomain of some kind which retains the full url and just adds “m” in front of it, such as “m.example.com/page”. This is beyond the scope of this article however, which simply addresses users of the home page being redirected.
Thanks for a simple, neat and easy solution to this.
No problem! I was amazed at how difficult to follow all the existing tutorials were, so I figured I would make one. If you liked it, feel free to share!