Quantcast
Channel: URL Rewrite Module
Viewing all articles
Browse latest Browse all 2482

Wordpress - SBS 2011 - Rewrite rule causes OWA and RWW 403 error

$
0
0

I have installed Wordpress on a new SBS 2011 Standard server, by using the WPI.

The default installation location is in a subfolder of wwwroot, called wordpress.

In order to have my WP site be the default site, I made the change to the index.php file and copied it to wwwroot:

require('./wordpress/wp-blog-header.php');

When browsing the WP site, the URL reads, http://mydomain.com/wordpress/page-name, as per my permalink setting.

To remove the /wordpress/ in my URL's, I added this rewrite rule to web.config and placed it in the wwwroot folder:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
<rewrite>
<rules>
<rule name="Main Rule" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.php" />
</rule>
</rules>
</rewrite>
    </system.webServer>
</configuration>

This effectively removes /wordpress/ from my URL's, and my site correctly displays http://mydomain.com/page-name; the desired effect.

Unfortunately, this rewrite rule (web.config file) also causes my OWA and RWW to crash and return a 403 Forbidden error.

If I remove this web.config file from wwwroot, OWA and RWW work perfectly.

My question is, how can I alter this rewrite rule, in order to work with OWA and RWW?


Viewing all articles
Browse latest Browse all 2482

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>