iis - It is possible to redirect website visitors to a main entrance page even if they have specific webpages bookmarked? -
i manage internal web-based application deployed through iis , accessed using ie. 'recommended' path accessing application is:
- open company intranet homepage , click url points homepage of website manage
- my homepage contains various need-to-know information , direct link web-app's login page
- they visit login page, log application , start using it.
users can add url of app's login page bookmarks can access faster. intend on adding more features homepage such blog updates, links directories, supporting documentation etc. want ensure both aware of , not ignore these.
is there way me make sure if tries visit direct login webpage, website forcibly redirects them homepage?
you can check referer header. example:
your homepage http://www.example.com/
login page http://www.example.com/login
in web.config need add rewrite rule:
<rule name="redirect home without referer" stopprocessing="true"> <match url="^login$" /> <conditions> <add input="{http_referer}" pattern="http://www.example.com" negate="true" /> </conditions> <action type="redirect" url="http://www.example.com/" /> </rule> this rule redirect homepage, if visitors open login page direct link. not redirect if opened login page page of website
Comments
Post a Comment