简体   繁体   中英

Is it possible to redirect a URL at a certain datetime via IIS (web.config)?

I need a redirect that activates at a certain date at midnight. Is it possible to implement that via url rewrite? I mean as xml in web.config? How?

No because you cannot know if there will be any traffic that could be redirected at that precise time. What you need to do is write a separate process (it could be as simple as some VBScript or Javascript that gets triggered by a Task Scheduler job) which would make the request at the specified time.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM