jenkins-bot has submitted this change and it was merged.

Change subject: docs: Pretty urls on IIS
......................................................................


docs: Pretty urls on IIS

This is some documentation for setup in business intranets taht run with
Microsoft IIS.

Change-Id: Iafbc05cebd318d6a493a609e1d38ed1720dd6d55
---
A maintenance/prettyurls/prettyurls.txt
A maintenance/prettyurls/web.config
2 files changed, 22 insertions(+), 0 deletions(-)

Approvals:
  Mglaser: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/maintenance/prettyurls/prettyurls.txt 
b/maintenance/prettyurls/prettyurls.txt
new file mode 100644
index 0000000..261036d
--- /dev/null
+++ b/maintenance/prettyurls/prettyurls.txt
@@ -0,0 +1,5 @@
+Use ''web.config'' in an IIS-Website with subfolder "w/".
+
+== LocalSettings.php ==
+$wgScriptPath = '/w';
+$wgArticlePath = $wgScriptPath."/$1";
\ No newline at end of file
diff --git a/maintenance/prettyurls/web.config 
b/maintenance/prettyurls/web.config
new file mode 100644
index 0000000..1b6ebb2
--- /dev/null
+++ b/maintenance/prettyurls/web.config
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<configuration>
+    <system.webServer>
+        <rewrite>
+            <rules>
+                <rule name="RewriteUserFriendlyURL1" stopProcessing="true">
+                    <match url="^w/(.*?)$" />
+                    <conditions>
+                        <add input="{REQUEST_FILENAME}" matchType="IsFile" 
negate="true" />
+                        <add input="{REQUEST_FILENAME}" 
matchType="IsDirectory" negate="true" />
+                    </conditions>
+                    <action type="Rewrite" url="w/index.php?title={R:1}" />
+                </rule>
+            </rules>
+        </rewrite>
+    </system.webServer>
+</configuration>

-- 
To view, visit https://gerrit.wikimedia.org/r/284703
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Iafbc05cebd318d6a493a609e1d38ed1720dd6d55
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceFoundation
Gerrit-Branch: master
Gerrit-Owner: Robert Vogel <[email protected]>
Gerrit-Reviewer: Dvogel hallowelt <[email protected]>
Gerrit-Reviewer: Ljonka <[email protected]>
Gerrit-Reviewer: Mglaser <[email protected]>
Gerrit-Reviewer: Pwirth <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to