• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • The ImunifyAV extension is now deprecated and no longer available for installation.
    Existing ImunifyAV installations will continue operating for three months, and after that will automatically be replaced with the new Imunify extension. We recommend that you manually replace any existing ImunifyAV installations with Imunify at your earliest convenience.

Question Need help converting an IIS URL Rewrite rule for Apache on Plesk

electricd7

New Pleskian
I am trying to setup autodiscover on my domain following directions from SmarterTools. These directions only lay out a method based on your website being housed on IIS. We use Plesk and Apache for our website. I have detailed directions on how to setup a URL Rewrite rule in IIS, but I have no idea how to do that same rule in my Plesk/Apache environment. Plesk says I can create rules in Apache Additional Directives (How to enable Apache or Nginx rewrite rules in Plesk? – Plesk Help Center), but I don't know how I would go about creating this specific rule in for my domain? The directions for the rule in IIS are as follows:

Create a URL Rewrite within IIS
Follow these steps if you'd like to add the rewrite rule by creating a URL Rewrite within IIS:
(Note: These instructions are for IIS 10. Steps may vary when using a different version of IIS.)
  1. Log in to the server that hosts your company website.
  2. Install the extension, URL Rewrite Module 2.0. For assistance and more information, see Using URL Rewrite Module 2.0.
  3. After the URL Rewrite Module has been installed, open Internet Information Services (IIS) Manager.
  4. In the navigation pane, expand the server name folder and Sites folder. Click on the site that's used for your company website.
  5. In the preview pane that lists the site features, under the IIS section, double-click on URL Rewrite.
  6. In the righthand Actions pane, click on Add Rules....
  7. Under the Inbound rules section, click on Blank rule.
  8. The Edit Inbound Rules window should be modified with the following parameters:
    • Name: Redirect rule1 for /autodiscover/autodiscover.xml
    • Requested URL: Matches the Pattern
    • Using: Regular Expressions
    • Pattern: .*
    • Ignore case: Enabled
    • Conditions
      • Logical Grouping: Match All
      • Click Addto create a new condition:
        • Condition Input: {/autodiscover/autodiscover.xml:{REQUEST_URI}}
        • Check if input string: Matches the Pattern
        • Pattern: (.+)
        • Click OK to submit the new condition.
      • Track capture groups across conditions: Disabled
    • Server Variables: None
    • Action
      • Action Type: Redirect
      • Action Properties
        • Redirect URL: {C:1}
        • Append query string: Disabled
        • Redirect type: Permanent (301)
  9. In the righthand pane, click Apply to save the Inbound Rule.
  10. After the Inbound Rule has been configured, perform an IIS reset.


How can I replicate this rule in Apache? Thanks!
 
Back
Top