1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to redirect Microsoft Edge browser traffic in htaccess?

Discussion in 'General Scripting Chat' started by don chino, Oct 25, 2015.

  1. don chino

    don chino Regular Member UnGagged Attendee

    Joined:
    Apr 2, 2011
    Messages:
    235
    Likes Received:
    51
    Is there a way to do it separately from other browsers?
     
    Last edited: Oct 25, 2015
  2. MrBlue

    MrBlue Senior Member

    Joined:
    Dec 18, 2009
    Messages:
    974
    Likes Received:
    680
    Occupation:
    Web/Bot Developer
    By using the useragent string, the following .htaccess code should redirect all Microsoft Edge browser traffic.

    Code:
    RewriteEngine on
    RewriteCond %{HTTP_USER_AGENT} Edge
    RewriteRule .* http://example.com/ [R]
    
     
    • Thanks Thanks x 2