Howto create an Apache Rewrite rule to redirect Microsoft Edge browser -


how create simple apache rewrite rule mod_rewrite redirect microsoft edge browser page 1 fixed page. needed on instance of apache runs on intranet , runs 1 specific application not cater edge, ie. when user tries go application edge, rule should redirect them specific url on server enlighten them how fine ie.

i facing 2 issues:

  1. i know rule needs act on user-agent, don't know makes edge browser unique others. thoughts on best place might go , figure out? have looked @ microsoft's web site , share strings are, doesn't spell out how tell them apart. thinking might best @ open source library has figured out.
  2. how write rule url hits site except 'enlightenment' page?

in general, user agents crappy deal with. best not rethink , use heavily tested library. 1 of best ua-parser. collection of regexes match user agents, flavors in languages.

if want have in apache logic itself, you can extract list of regex

(edge)(\d+)(?:\.(\d+))?

enter image description here

how write rule url hits site except 'enlightenment' page?

rewriterule want at


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -