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

How can i exclude .aspx pages from URL rewrite rule?

$
0
0

I have installed a new wordpress website and in order to use the friendly permalinks feature i have added the following code to my web.config

<defaultDocument><!-- Set the default document --><files><remove value="index.php" /><add value="index.php" /></files></defaultDocument><httpErrors errorMode="Detailed"/><rewrite><rules><rule name="wordpress" patternSyntax="Wildcard"><match url="*" /><conditions><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>

However this stops my .aspx web page from posting, when i click the submit button it refreshes the page instead of posting to the next process

I want to either exclude 5 individual .aspx webpages or all .aspx webpages from the redirections

Is this possible?

Thanks


Viewing all articles
Browse latest Browse all 27852

Trending Articles



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