Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 27852

Friendly Url AND extensionless

$
0
0

Hi

Please help me get this to work so that I can have this url friendly and extensionless. At the moment it is trying to add .aspx to the end of the query string. Also I am getting an error 500 on the outbound rule??

<

rewrite>

<

outboundRules>

<

rule name="OutboundRewriteUserFriendlyURL1" preCondition="ResponseIsHtml1">

<

match filterByTags="A, Form, Img" pattern="^(.*/)WindowCAD\?web=([^=&amp;]+)&amp;(?:amp;)?username=([^=&amp;]+)$" />

<

action type="Rewrite" value="{R:1}WindowCAD/{R:2}/{R:3}/" />

</

rule>

<

preConditions>

<

preCondition name="ResponseIsHtml1">

<

add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />

</

preCondition>

</

preConditions>

</

outboundRules>

<

rules>

<

rule name="Redirect WindowCADLite" stopProcessing="true">

<

match url="^WindowCADLite$" />

<

action type="Redirect" url="WindowCAD?web=Composite_Door" />

</

rule>

<

rule name="Redirect to WWW" stopProcessing="true">

<

match url=".*" />

<

conditions>

<

add input="{HTTP_HOST}" pattern="^windowsoftware.co.uk$" />

</

conditions>

<

action type="Redirect" url="http://www.windowsoftware.co.uk/{R:0}" redirectType="Permanent" />

</

rule>

<

rule name="Default Document" stopProcessing="true">

<

match url="(.*)default.aspx" />

<

action type="Redirect" url="{R:1}" redirectType="Permanent" />

</

rule>

<

rule name="RedirectUserFriendlyURL1" stopProcessing="true">

<

match url="^WindowCAD$" />

<

conditions>

<

add input="{REQUEST_METHOD}" pattern="^POST$" negate="true" />

<

add input="{QUERY_STRING}" pattern="^web=([^=&amp;]+)&amp;username=([^=&amp;]+)$" />

</

conditions>

<

action type="Redirect" url="WindowCAD/{C:1}/{C:2}" appendQueryString="false" />

</

rule>

<

rule name="RewriteUserFriendlyURL1" stopProcessing="true">

<

match url="^WindowCAD/([^/]+)/([^/]+)/?$" />

<

conditions>

<

add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />

<

add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />

</

conditions>

<

action type="Rewrite" url="WindowCAD?web={R:1}&amp;username={R:2}" />

</

rule>

<

rule name="Redirect aspx to extensionless" stopProcessing="true">

<

match url="(.*)\.aspx"/>

<

action type="Redirect" url="{R:1}" redirectType="Permanent"/>

</

rule>

<

rule name="rewrite the aspx extension" 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="{R:1}.aspx" redirectType="Permanent"/>

</

rule>

</

rules>

</

rewrite>


Viewing all articles
Browse latest Browse all 27852

Trending Articles



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