22nd Jan 2012, 02:31 PM | #1 |
HyperActive Warrior War Room Member Join Date: 2009 Location: Canada
Posts: 121
Thanks: 12
Thanked 16 Times in 13 Posts
|
There are several ways to redirect to a mobile site. For example: javscript redirects based on screen resolution, php redirects, user-agent redirects, .htaccess redirects, WP plugins. I am not sure the pros and cons of the different methods. I was wondering what other people are using and why, for both HTML and Worpdress sites. Thanks |
| |
22nd Jan 2012, 04:02 PM | #2 |
HyperActive Warrior War Room Member Join Date: 2011
Posts: 220
Thanks: 14
Thanked 45 Times in 22 Posts
|
I would recommend useragent based redirect because in my experience it has been the most accurate Posted from Warrior Forum Reader for Android |
| |
22nd Jan 2012, 04:54 PM | #3 |
Digital Marketer War Room Member Join Date: 2010 Location: Australia
Posts: 12,475
Thanks: 1,984
Thanked 8,187 Times in 4,079 Posts
|
I have used the screen resolution redirection in the past and it's worked well but I must say, I am looking more towards user agent redirection now. The reason being that newer mobile phones are coming out with large screen resolutions and you get to the point where if you were to include all the mobile devices out there, you would end up redirecting half of the PCs as well.
|
| |
22nd Jan 2012, 09:46 PM | #4 |
HyperActive Warrior War Room Member Join Date: 2009 Location: Canada
Posts: 121
Thanks: 12
Thanked 16 Times in 13 Posts
|
Thanks Sylarr and Will!
|
| |
22nd Jan 2012, 10:55 PM | #5 |
Mobile+WP = JumpMobi.com War Room Member Join Date: 2009 Location: San Antonio, Tx
Posts: 1,270
Thanks: 301
Thanked 449 Times in 309 Posts
|
If you see my other other posts you will I have always been an advocate for user agent based redirect - additionally if you read up on googles new mobile bot - user agent detection will help aide google find your mobile sites.
|
Sorry, I am too busy helping people to think of a cool signature! | |
23rd Jan 2012, 12:30 AM | #6 |
HyperActive Warrior War Room Member Join Date: 2009 Location: Canada
Posts: 121
Thanks: 12
Thanked 16 Times in 13 Posts
|
Hi Jay - I have actually bought your redirect plugin, but haven't installed it on my Wordpress websites yet. It looks great. How do you handle HTML sites? I have a couple of new clients who have HTML sites so I was mainly concerned about those. Thanks |
| |
23rd Jan 2012, 02:18 AM | #7 | |
HyperActive Warrior War Room Member Join Date: 2011
Posts: 220
Thanks: 14
Thanked 45 Times in 22 Posts
|
| |
| ||
23rd Jan 2012, 08:57 AM | #8 | |
Mobile+WP = JumpMobi.com War Room Member Join Date: 2009 Location: San Antonio, Tx
Posts: 1,270
Thanks: 301
Thanked 449 Times in 309 Posts
|
If the sites small enough you can always rename the files to have .php extensions so you can use php user agent detection - if the site is established and the HTML pages already ranked in google then you would need to add 301 redirects or mod rewrite functionality to ensure no 404 page not found errors. Hope that helps sorry if it got a little technical towards the end there lol | |
Sorry, I am too busy helping people to think of a cool signature! | ||
24th Jan 2012, 06:46 PM | #9 |
HyperActive Warrior War Room Member Join Date: 2009 Location: Canada
Posts: 121
Thanks: 12
Thanked 16 Times in 13 Posts
|
Thanks Jay. Not sure I understood all that, but will need to check my notes and discuss with my programmer - who just happens to be my son!
|
| |
24th Jan 2012, 09:57 PM | #10 | |
Mobile+WP = JumpMobi.com War Room Member Join Date: 2009 Location: San Antonio, Tx
Posts: 1,270
Thanks: 301
Thanked 449 Times in 309 Posts
|
Cheers Jay | |
Sorry, I am too busy helping people to think of a cool signature! | ||
24th Jan 2012, 10:59 PM | #11 |
HyperActive Warrior War Room Member Join Date: 2009 Location: Canada
Posts: 121
Thanks: 12
Thanked 16 Times in 13 Posts
|
Thanks Jay!
|
| |
27th Jan 2012, 06:51 PM | #12 |
Warrior Member Join Date: 2011
Posts: 6
Thanks: 1
Thanked 1 Time in 1 Post
|
Kayla, You might want to check out this site: Mobile Boilerplate They've got an .htaccess script that is killer. FREE of charge. Enjoy. |
1st Feb 2012, 12:47 AM | #13 |
HyperActive Warrior War Room Member Join Date: 2009 Location: Canada
Posts: 121
Thanks: 12
Thanked 16 Times in 13 Posts
|
Thanks - I will check it out.
|
| |
10th Feb 2012, 11:12 AM | #14 | |
MobileWebRockstar War Room Member Join Date: 2011 Location: New York
Posts: 253
Thanks: 41
Thanked 52 Times in 37 Posts
|
| |
| ||
10th Feb 2012, 12:29 PM | #15 |
Active Warrior Join Date: 2011
Posts: 52
Thanks: 18
Thanked 4 Times in 4 Posts
|
Which solution is turn key? With little involvement from web admin who may host their current site or who designed their main site
|
10th Feb 2012, 01:37 PM | #16 |
MobileWebRockstar War Room Member Join Date: 2011 Location: New York
Posts: 253
Thanks: 41
Thanked 52 Times in 37 Posts
|
I don't think there is one. They'll either have to add code to the current site or edit the .htaccess file. You could come up with instructions and tell the this is what needs to be done in order for the mobile site to work. I actually just played around with this script, Redirect Mobile Site in 3 Easy Steps (wrote about it on my blog) and it works really good to go back to a full site. Just put the link on your mobile page and it will redirect to the full version if clicked. When testing on a smartphone, make sure to clear the cookies before you retry it. Took a couple of times for me to figure that one out. |
| |
The Following User Says Thank You to lint631 For This Useful Post: |
10th Feb 2012, 05:16 PM | #17 | |
Mobile+WP = JumpMobi.com War Room Member Join Date: 2009 Location: San Antonio, Tx
Posts: 1,270
Thanks: 301
Thanked 449 Times in 309 Posts
|
if you do use the above script than you really should make sure you submit a mobile site map, obviously if your not bothered about Google that script rocks! lol The best way to deploy this strategy is via php using user agent detection and having php drop the cookie... its the same principle method we use in our wp redirect plugin to enable users to return back to the main site cheers jay | |
Sorry, I am too busy helping people to think of a cool signature! | ||
10th Feb 2012, 05:32 PM | #18 | |
MobileWebRockstar War Room Member Join Date: 2011 Location: New York
Posts: 253
Thanks: 41
Thanked 52 Times in 37 Posts
|
| |
| ||
10th Feb 2012, 06:09 PM | #19 |
Mobile+WP = JumpMobi.com War Room Member Join Date: 2009 Location: San Antonio, Tx
Posts: 1,270
Thanks: 301
Thanked 449 Times in 309 Posts
|
k i thought of a process but then after typing it out it realized it was fatally flawed! lol take a look at this: http://www.askapache.com/htaccess/ht...ect_Cookie_Set try adding in a similar condifitonal statement into your htaccess file... i wasnt aware until right now you could do that, additionally a little further on that page you will see how to set a cookie too when what isnt present... basically you want to use the following logic: 1) if no cookie present redirect 2) if cookie present dont redirect i dont particularly like using htaccess files but in your scenario i think this could work out well... HTH jay |
Sorry, I am too busy helping people to think of a cool signature! | |
10th Feb 2012, 08:21 PM | #20 |
Making the Dream Real War Room Member Join Date: 2009 Location: Orlando, FL USA
Posts: 95
Thanks: 58
Thanked 32 Times in 18 Posts
|
The crowd favorite mobile plugin for one of my personal wordpress blogs has worked well for me.
|
| |
15th Feb 2012, 07:43 AM | #21 |
MobileWebRockstar War Room Member Join Date: 2011 Location: New York
Posts: 253
Thanks: 41
Thanked 52 Times in 37 Posts
|
@Jay @Morpheus - thanks for the suggestions. I'll try out those solutions. @Jay - You said you don't like redirects from a .htaccess file. Just wondering why and what do you think is the best solution? Thanks! |
| |
15th Feb 2012, 08:50 AM | #22 |
Mobile+WP = JumpMobi.com War Room Member Join Date: 2009 Location: San Antonio, Tx
Posts: 1,270
Thanks: 301
Thanked 449 Times in 309 Posts
|
@lint361 - For me I prefer PHP User Agent detection i just find it's much more flexible. We don't use user agent detection just for redirecting mobile devices but instead we use it for a whole bunch of things, namely for delivering the most compatible content to the correct devices. Additionally it's been in my experience that noobs often get lost with dot files in general since they are not always visible in certain ftp scenarios. Additionally if not deployed properly you can really mess up the access to your site! lol It's just personal preference - however i would use a .htaccess file in the particular scenario you are in. |
Sorry, I am too busy helping people to think of a cool signature! | |
15th Feb 2012, 07:13 PM | #23 |
MobileWebRockstar War Room Member Join Date: 2011 Location: New York
Posts: 253
Thanks: 41
Thanked 52 Times in 37 Posts
|
@Jay Your so right. Messing with the .htaccess file can screw things up royally. I did it once and now backup the file before I touch it! A horrible lesson to learn. |
| |
15th Feb 2012, 10:56 PM | #24 |
Mobile+WP = JumpMobi.com War Room Member Join Date: 2009 Location: San Antonio, Tx
Posts: 1,270
Thanks: 301
Thanked 449 Times in 309 Posts
| |
Sorry, I am too busy helping people to think of a cool signature! | |
16th Feb 2012, 02:09 AM | #25 |
Software Wizard War Room Member Join Date: 2011 Location: Pittsburgh, PA
Posts: 99
Thanks: 78
Thanked 141 Times in 78 Posts
|
I use the MobileESP project (The MobileESP Project: Easily detect mobile web site visitors) for mobile redirection...their scripts work flawlessly...they have a PHP version of the script and its updated regularly...highly recommended and very easy to use.
|
| |
Bookmarks |
Tags |
cons, methods, mobile, pros, redirects |
| |