Magento Forum

Magento hosting with mobile redirect support
 
daviddev
Sr. Member
 
Avatar
Total Posts:  76
Joined:  2013-02-28
 

I have a magento site what is working very well but not too fast. I want to move to new hosting what need to work well but include mobile redirection support too. I have another mobile version for it and I want the site redirect to mobile version what control by hosting setting, in this case I don’t have to change the magento source code what is working well and I don’t want to touch it.

Please give me some options, thanks.

 
Magento Community Magento Community
Magento Community
Magento Community
 
magesolutions
Sr. Member
 
Avatar
Total Posts:  91
Joined:  2013-02-03
 

You can make it work easy by adding some code in .htaccess. But if you want some hosting do automatically, you can try this list of hosting http://magentohostsolution.com/ . Hope it help you.

 
Magento Community Magento Community
Magento Community
Magento Community
 
daviddev
Sr. Member
 
Avatar
Total Posts:  76
Joined:  2013-02-28
 

Wow, it ‘s very easy and work very well. Thanks your suggestions.

 
Magento Community Magento Community
Magento Community
Magento Community
 
paulinetaylor85
Jr. Member
 
Total Posts:  1
Joined:  2013-03-05
 

I did the changes in .htaccess and now it works perfectly. Thanks for your guidance.

 
Magento Community Magento Community
Magento Community
Magento Community
 
magesolutions
Sr. Member
 
Avatar
Total Posts:  91
Joined:  2013-02-03
 

You guys are welcome, I always use this way for my sites.

 
Magento Community Magento Community
Magento Community
Magento Community
 
daviddev
Sr. Member
 
Avatar
Total Posts:  76
Joined:  2013-02-28
 

What did you change in your .htaccess file?

 
Magento Community Magento Community
Magento Community
Magento Community
 
daviddev
Sr. Member
 
Avatar
Total Posts:  76
Joined:  2013-02-28
 

I just want to make I do the same way as yours. Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
magento2x
Member
 
Avatar
Total Posts:  57
Joined:  2013-02-20
 

I used this one

#redirect mobile browsers
RewriteCond %{HTTP_USER_AGENT} ^.*iPhone.*$
RewriteRule ^(.*)$ http://mobile.yourdomain.com [R=301]
RewriteCond %{HTTP_USER_AGENT} ^.*BlackBerry.*$
RewriteRule ^(.*)$ http://mobile.yourdomain.com [R=301]
RewriteCond %{HTTP_USER_AGENT} ^.*Palm.*$
RewriteRule ^(.*)$ http://mobile.yourdomain.com [R=301]

 
Magento Community Magento Community
Magento Community
Magento Community
 
daviddev
Sr. Member
 
Avatar
Total Posts:  76
Joined:  2013-02-28
 

thanks magento2x, it doesn’t work in my local, not sure why. But it work well with the host I has just buy from this suggestion http://magentohostsolution.com/ . I think my local webserver configuration have problem.

 
Magento Community Magento Community
Magento Community
Magento Community
 
daviddev
Sr. Member
 
Avatar
Total Posts:  76
Joined:  2013-02-28
 

I found the problem from my code, thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
filelinks
Member
 
Avatar
Total Posts:  55
Joined:  2013-03-15
 
magesolutions - 02 March 2013 06:10 AM

You can make it work easy by adding some code in .htaccess. But if you want some hosting do automatically, you can try this list of hosting http://magentohostsolution.com/ . Hope it help you.

It ‘s nice to have it ready support for magento mobile redirection in hosting cpanel, thanks magesolutions for good suggestion, I go right away with your first suggestion and it work very well. Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
shunlee
Member
 
Avatar
Total Posts:  34
Joined:  2013-03-14
 
magento2x - 13 March 2013 06:54 PM

I used this one

#redirect mobile browsers
RewriteCond %{HTTP_USER_AGENT} ^.*iPhone.*$
RewriteRule ^(.*)$ http://mobile.yourdomain.com [R=301]
RewriteCond %{HTTP_USER_AGENT} ^.*BlackBerry.*$
RewriteRule ^(.*)$ http://mobile.yourdomain.com [R=301]
RewriteCond %{HTTP_USER_AGENT} ^.*Palm.*$
RewriteRule ^(.*)$ http://mobile.yourdomain.com [R=301]

Not sure why, it doesn’t work for me. Any idea why?

 
Magento Community Magento Community
Magento Community
Magento Community
 
wpexpertforum
Jr. Member
 
Avatar
Total Posts:  10
Joined:  2013-07-08
 

Hi shunlee, you can should check if you server support .htaccess good or not. Your is right.

shunlee - 11 June 2013 02:46 AM

magento2x - 13 March 2013 06:54 PM
I used this one

#redirect mobile browsers
RewriteCond %{HTTP_USER_AGENT} ^.*iPhone.*$
RewriteRule ^(.*)$ http://mobile.yourdomain.com [R=301]
RewriteCond %{HTTP_USER_AGENT} ^.*BlackBerry.*$
RewriteRule ^(.*)$ http://mobile.yourdomain.com [R=301]
RewriteCond %{HTTP_USER_AGENT} ^.*Palm.*$
RewriteRule ^(.*)$ http://mobile.yourdomain.com [R=301]

Not sure why, it doesn’t work for me. Any idea why?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top