Welcome, Guest
Username Password: Remember me

How to stop iphone site opening on PC?
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: How to stop iphone site opening on PC?

How to stop iphone site opening on PC? 12 years, 1 month ago #12485

My iphone site is visible more on google search than original site. And it runs on PC as a iphone site, which is a bit distracting. I want to redirect to main site if it is not iphone device.
I am using mobile joomla component on my site.

I tried this htaccess code but it's not working for me:

RewriteCond %{HTTP_USER_AGENT} !^"iPhone" [NC]
RewriteRule .? www.example.com%{REQUEST_URI} [R=301,L]

Is there any easy way to solve this issue in mobile joomla component?
  • Page:
  • 1
Time to create page: 0.05 seconds

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.