Add Permalink code to web.config
-
Hi, I’m not a programmer but managed to get the following domain redirection to work with “ugly” permalinks (www.lacjustone.com). I would like to switch to pretty permalinks but I need to add the standard code needed back into this web.config without breaking my redirection. Help would be greatly appreciated. Thanks.
<?xml version=”1.0″ encoding=”UTF-8″?>
<configuration>
<system.web>
<trust level=”Full”/>
</system.web>
<system.webServer>
<!– Set the default document –>
<defaultDocument>
<files>
<remove value=”index.php”/>
<add value=”index.php”/>
</files>
</defaultDocument>
<directoryBrowse enabled=”false”/>
<rewrite>
<rules>
<rule name=”LacJustone” stopProcessing=”true”>
<match url=”.*” />
<conditions>
<add input=”{HTTP_HOST}” pattern=”^(www.)?lacjustone.com$” />
<add input=”{PATH_INFO}” pattern=”^/wp/” negate=”true” />
</conditions>
<action type=”Rewrite” url=”\wp\{R:0}” />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
- The topic ‘Add Permalink code to web.config’ is closed to new replies.