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

  • SEARCH
  • Home
  • 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 646741
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T21:38:44+00:00 2026-05-13T21:38:44+00:00

I would like to forward iphone users to a mobile version of my site

  • 0

I would like to forward iphone users to a mobile version of my site with apache’s RewriteCond %{HTTP_USER_AGENT} (...)

My question is, how would I redirect visitors of the mobile site back to the full site? Since they’re on a mobile device, they’d just get re-routed to the mobile site again right?

Cheers,
Phil

  • 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-13T21:38:45+00:00Added an answer on May 13, 2026 at 9:38 pm

    You should redirect to a page that sets a cookie value, then redirects back to the main page again. Then you can do a cookie-based rewrite – if the cookie is present, don’t rewrite the URL. If it’s not present, do the rewrite.

    The benefit of this, other than not having to append a GET variable to the URL, is that your user’s preference is stored for future visits. If he/she prefers the full format of the site that’s what they will see the next time they visit.

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

Sidebar

Related Questions

I would like for my site when someone clicks Back or Forward for the
My question is hopefully pretty straight forward. Upon submitting my form, I would like
I would like to forward users using .htaccess When they visit the page: http://www.example.com/add_event/
My question is fairly straight-forward, however, side note: I also would like to make
I would like to forward a request in Apache, based on a request header,
I would like to disallow double forward slashes (//) in my regular expression (and
I receive a POST request at my PHP script and would like to forward
I receive HTTP PUT requests on a server and I would like to redirect
I would like to create a forward-function that terminates the caller-function. Currently I'm using
I've been experimenting with the compass and gyroscope on iPhone 4 and would like

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.