replied on January 16, 2025
I build a separate "Maintenance Form" on almost every process so I can switch out forms form the Message Start Event Activity if I don't want people to complete during certain times...form updates, maintenance, etc. No rules or lookups to bother with. @████████suggestion is faster but you would need to go in and set it up in each form.
However, since you need all of them off pretty quick, I believe you can go into IIS on the form server and use the URL Rewrite to create a rule and redirect your forms url to another page that could just contain a message or image of maintenance. I did this a few years ago at another district. I haven't tested these instructions because we have an automatic redirect when for all of our sites when they are not accessible, but I pulled these from Copilot and it looks correct from what I remember.
To create a redirect for a web address in IIS for Laserfiche Forms (self-hosted), you can follow these steps:
-
Open IIS Manager:
- Press Windows + R, type inetmgr, and press Enter.
-
Select Your Site:
- In the left-hand Connections pane, expand your server’s node and then expand the Sites node.
- Click on the site where Laserfiche Forms is hosted.
-
Add a Redirect Rule:
- In the middle pane, double-click on the URL Rewrite feature.
- In the Actions pane on the right, click on Add Rule(s)....
- Select Blank rule and click OK.
-
Configure the Rule:
- Name: Give your rule a name (e.g., RedirectToHttps).
- Requested URL: Choose Matches the Pattern.
- Using: Select Regular Expressions.
- Pattern: Enter (.*) to match all URLs.
-
Set the Redirect Conditions:
- Click on Add... under the Conditions section.
- Condition input: Select {HTTPS} from the dropdown.
- Check if input string: Select Matches the Pattern.
- Pattern: Enter ^OFF$ to match non-HTTPS requests.
- Click OK.
-
Set the Redirect Action:
- In the Action section, set the following:
- Action type: Select Redirect.
- Redirect URL: Enter https://{HTTP_HOST}/{R:1}.
- Append query string: Select Yes.
- Redirect type: Choose Permanent (301).
-
Apply the Rule:
- Click Apply in the Actions pane on the right.
-
Test the Redirect:
- Open a web browser and navigate to the HTTP version of your Laserfiche Forms URL to ensure it redirects to HTTPS.