I have a rewrite rule to rewrite www.mysite.com/default.aspx
to www.mysite.com
.
RewriteRule ^default.aspx$ / [NC,R=301,L]
On that site i have an asp.net server Button
. When i click the button it tries to go to postback to default.aspx
, but gets 301
'd to the root. This prevents the button's click event from triggering.
How can i redirect default.aspx
, without breaking my button's event?