0

I wan to create same link for my mobile and desktop website in magento. So my question is that when i used htaccess then it will redirect by check device,but url changed in url bar, so how can i prevent this .

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} "!(android|blackberry|googlebot-mobile|iemobile|ipad|iphone|ipod|opera mobile|palmos|webos)" [NC]
RewriteRule ^$ http://www.example.com/ [L,R=302]
</IfModule>
2
  • 1
    I believe having responsive design will do the magic for you. Aug 27, 2015 at 6:12
  • 1
    Can you post .htaccess content? Need more info about your question Aug 27, 2015 at 6:16

1 Answer 1

1

With a responsive Magento theme such as the default rwd (responsive web design) theme in Magento CE1.9 the shop url is the same for all devices.

The responsive css adapts the frontend creating variable sized webpages for desktop, mobile, tablets etc.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.