Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7634365
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T07:09:17+00:00 2026-05-31T07:09:17+00:00

Quick search revealed many guides explaining how to detect an iPhone or iPad: RewriteEngine

  • 0

Quick search revealed many guides explaining how to detect an iPhone or iPad:

RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} iPhone
RewriteRule .* http://iphone.example.com/ [R]

but is there any way to detect a Mac user (any browser), and redirect him?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T07:09:19+00:00Added an answer on May 31, 2026 at 7:09 am

    Macintosh UserAgents looks like something like this : Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7

    As far as I know, RewriteCond %{HTTP_USER_AGENT} will look for the regular expression you gave him. In the mentioned case, if he finds iPhone in the User-Agent, the condition test will return true. So it should be possible to do something like this :

    RewriteCond %{HTTP_USER_AGENT} Macintosh
    RewriteCond %{HTTP_HOST} ^www.example.com$
    RewriteRule ^ http://mac.example.com%{REQUEST_URI} [R]
    

    Hope this works, and hope this helps 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My quick search reveals the reference implementation ( http://stax.codehaus.org ), the Woodstox implementation (
A quick search gives me tawbaware wc , but it does not accept stdout
A quick search for currency regex brings up a lot of results . The
I did a quick search on how to check whether Internet is available or
I did a quick search, but couldn't find a specific solution to this (I'm
I'm looking for a boo syntax sheet/reference card. A quick search on google and
A quick Google search of this issue shows it's common, I just can't for
What is the most mature .NET MPI implementation? A quick google search turned up
couple of quick questions 1) In the local search results - we can get
I will make this quick. I'm using Ruby/LDAP to search using my base_dn criteria.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.