Note that there are some explanatory texts on larger screens.

plurals
  1. POURL Rewriter.NET web.config node issue
    primarykey
    data
    text
    <p>I'm using <a href="http://urlrewriter.net/" rel="nofollow noreferrer">URL Rewriter.NET</a> (which I'm liking a lot, by comparison to URL Rewriting.NET - more versitile it seems, don't get me wrong, I like URL Rewriting.NET, but it didn't seem to satisfy the need, given what I know of the tool). I'm trying to use the <a href="http://urlrewriter.net/index.php/support/reference/default-documents" rel="nofollow noreferrer">default-documents</a> node to redefine the default documents for the site. I've tried adding it to the rewriter node, but I get a web.config error</p> <pre><code>Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: The element 'default-documents' is not allowed. Source Error: Line 187: Line 188: &lt;rewriter&gt; Line 189: &lt;default-documents&gt; Line 190: &lt;document&gt;default.aspx&lt;/document&gt; Line 191: &lt;document&gt;index.aspx&lt;/document&gt; </code></pre> <p>Has anyone used this tool in the past, and does anyone know where to put this node (or proper usage)?</p> <p>EDIT:</p> <p>I tried the suggestion below, but it didn't seem to work quite right. Here is what is in my extra config file (this is the only contents in the config file)</p> <pre><code>&lt;rewriter&gt; &lt;rewrite url="^(/.+(\.gif|\.png|\.jpg|\.ico|\.pdf|\.css|\.js)(\?.+)?)$" to="$1" processing="stop" /&gt; &lt;default-documents&gt; &lt;document&gt;default.aspx&lt;/document&gt; &lt;document&gt;index.aspx&lt;/document&gt; &lt;/default-documents&gt; &lt;/rewriter&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload