NameSilo

Redirect Internet Browser

SpaceshipSpaceship
Watch

wussadotcom

My MemoriesVIP Member
Impact
58
Hi, currently my site checkpagerank.ws
has a design problem for IE and Chrome users and only works for FF. Are there any way to detect our sites users using what type of Internet browser and hot to redirect them to other page at my site using .htaccess?
Thanks a lot
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains โ€” AI StorefrontUnstoppable Domains โ€” AI Storefront
Something like this should work ...

(warning: this is B.C. - Before Coffee :) )

RewriteEngine on
RewriteCond %{HTTP_user_agent} ^someuseragentstring [OR]
RewriteCond %{HTTP_user_agent} ^someotheruseragentstring [OR]
(more here as needed, make sure the last one does NOT have "[OR]")
RewriteRule ^.*$ http://www.yoursite.tld/somepage.htm [L]​

Do a search to find the correct user agent strings to use.

Or if you have a custom 403 error page the RewriteRule could be:
RewriteRule .* - [F]​
 
0
•••
How to redirect every browser except FF?
 
0
•••
RewriteCond %{HTTP_USER_AGENT} !^.*Firefox.*

BUT ...

If you do that make rules to allow googlebot, slurp, etc. or you'll block them too!
 
0
•••
CatchedCatched
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomainEasy โ€” Payment Flexibility
DomDB
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back