Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.htaccess redirect for Blackberry users not working 1

Status
Not open for further replies.

isaacgrover

IS-IT--Management
Jun 13, 2006
54
Good afternoon,

All I am trying to accomplish is that visitors to my site using the Blackberry Tour (Blackberry 9630) be redirected to index.htm, and all others go to index.html.

According to what I have read, this should work. However, my Blackberry users receive an 'excessive redirects' message. Can anyone here see what I am doing incorrectly?

Code:
Options +SymLinksIfOwnerMatch
RewriteEngine on

# redirect for blackberry users
RewriteCond %{HTTP_USER_AGENT} ^.*(BlackBerry9630).*$
RewriteRule ^(.*)$ /index.htm [L]

# redirect qcs-rf.com website transition
RewriteCond %{HTTP_USER_AGENT} !^.*(BlackBerry9630).*$
RewriteRule ^(.*)$ /index.html [L]

Thank you in advance,


--
Isaac Grover, Owner
Quality Computer Services of River Falls, Wisconsin
Web:
 
try this
Code:
Options +SymLinksIfOwnerMatch
RewriteEngine on

# redirect for blackberry users
RewriteCond %{HTTP_USER_AGENT} ^.*(BlackBerry9630).*$
RewriteRule ^$ /index.htm [L]

# redirect qcs-rf.com website transition
RewriteCond %{HTTP_USER_AGENT} !^.*BlackBerry9630.*$
RewriteRule ^$ /index.html [L]

-----------------------------------------
I cannot be bought. Find leasing information at
 
Hi Josh, that did the trick - I gave you a star. =)


--
Isaac Grover, Owner
Quality Computer Services of River Falls, Wisconsin
Web:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top