How to detect and redirect with .htaccess

Started on the old forum in March 2011 · view the original in the archive · old links redirect here

1 reply · 1,073 views · started 15 years ago · 1 min read

2 participants
s3nzo Developer · 156 posts #1

Hey guys can you please help me here i want to detect a user browser using .htaccess and redirect to either mobile or desktop version of my site, what is the code to paste on .htaccess?

khan Lead · 681 posts #2

U could use php code on ur index page. I guess there is no such code to detect mobile browser by .htaccess search here in this forum for php code to detect n redirect mobile browser.

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close