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>
  • 1
    I believe having responsive design will do the magic for you. – Adarsh Khatri Aug 27 '15 at 6:12
  • 1
    Can you post .htaccess content? Need more info about your question – Girish SH Aug 27 '15 at 6:16
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.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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