/
URLRewriting.HOW-TO.txt
34 lines (30 loc) · 1.02 KB
/
URLRewriting.HOW-TO.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# 1. Modify MojoPortal Web.config
<configSections>
<section name="rewriter" type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter" requirePermission="false"/>
...
</configSections>
<rewriter configSource="URLRewriter.config"/>
<httpModules>
.....
<!-- It should be at the section bottom!!!
-->
<add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule,Intelligencia.UrlRewriter"/>
</httpModules>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true">
.....
<!-- It should be at the section bottom!!!
-->
<add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule,Intelligencia.UrlRewriter" preCondition="managedHandler"/>
</modules>
.....
</system.webServer>
....
<appSettings>
...
<add key="YAF.EnableURLRewriting" value="false" />
...
</appSettings>
# 2. After it.
Copy URLRewriter.config into site root.
Url Rewriting doesn't depend on MojoPortal UrlRewriting.