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:
- 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.
- 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+))?
how write rule url hits site except 'enlightenment' page?
rewriterule
want at
Comments
Post a Comment