There are known issues between mod_mono and mod_rewrite. This article suggests adding the [PT] flag to the rule to work-around the bug. https://www.martineve.com/2009/08/24/using-mod_mono-with-mod_rewrite-under-apache2-on-linux/
I configured these rules in .htaccess (added PT to both rules) # remove .aspx; use THE_REQUEST to prevent infinite loops RewriteCond %{THE_REQUEST} ^GET\ (.*)\.aspx\ HTTP RewriteRule (.*)\.aspx$ $1 [PT,R=301] # add .aspx to access file, but don't redirect RewriteCond %{REQUEST_FILENAME}.aspx -f RewriteCond %{REQUEST_URI} !/$ RewriteRule (.*) $1\.aspx [PT,L] However, it doesn't solve it in my case. When requesting the .aspx page, I get: "Your browser sent a request that this server could not understand." When requesting the page without .aspx, the same problem remains where it adds .aspx after a postback. Mono clearly has bugs with MOD_REWRITE and with RequiredFieldValidators. I am running Mono 2.10.5. Are there any plans to fix these two bugs anytime soon, or are there ways to work-around them? -- View this message in context: http://mono.1490590.n4.nabble.com/Postback-not-working-properly-on-Ubuntu-tp3929778p3933660.html Sent from the Mono - ASP.NET mailing list archive at Nabble.com. _______________________________________________ Mono-aspnet-list mailing list Mono-aspnet-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-aspnet-list