URL rewriting

  • Thread starter Thread starter Michael Appelmans
  • Start date Start date
M

Michael Appelmans

I'm trying to use a rule based URL rewrite application which uses
HttpApplication.RewritePath. I keep getting "rsource not found" error in
application when running on shared web host although the software runs fine on
my localhost. Is it possible that the web hosting service has configured
something in the machine.config file to disable URL rewriting? I have been
communicating with them but they seem clueless as to the cause.

Thanks for any insight.
 
Michael,
Have you made any configuration changes to your local IIS? Did you map
all file extensions to ASP.NET in order to use URL rewriting? If so it may
be that your hosting provider is using IIS defaults.

Best regards,
Jeffrey Palermo
 
Hi Jeffrey

I'm using IIS defaults as I'm only rewriting for .aspx urls. I just wondered if
there might be something in their machine.config which disables url rewriting.

Thanks for the reply.

Michael

"Jeffrey Palermo [MCP]" said:
Michael,
Have you made any configuration changes to your local IIS? Did you map
all file extensions to ASP.NET in order to use URL rewriting? If so it may
be that your hosting provider is using IIS defaults.

Best regards,
Jeffrey Palermo

Michael Appelmans said:
I'm trying to use a rule based URL rewrite application which uses
HttpApplication.RewritePath. I keep getting "rsource not found" error in
application when running on shared web host although the software runs fine on
my localhost. Is it possible that the web hosting service has configured
something in the machine.config file to disable URL rewriting? I have been
communicating with them but they seem clueless as to the cause.

Thanks for any insight.
 
Michael,
There isn't a setting in the machine.config to "disable" url rewriting
because it's custom code that does the rewriting. I understand that it's
hard to debug on a server that is not your own, but you can sprinkle your
code with Trace.Write() statements to help out with this. I have
encountered this error when I tried going to http://server/subFolder/ and
the default page, default.aspx did not exist or when the page I'm rewriting
to doesn't exist.

--
Best regards,
Jeffrey Palermo
Blog: http://dotnetjunkies.com/weblog/jpalermo


Michael Appelmans said:
Hi Jeffrey

I'm using IIS defaults as I'm only rewriting for .aspx urls. I just wondered if
there might be something in their machine.config which disables url rewriting.

Thanks for the reply.

Michael
 
Back
Top