URL rewriting

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.
 
J

Jeffrey Palermo [MCP]

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
 
M

Michael Appelmans

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.
 
J

Jeffrey Palermo [MCP]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top