[Mono-dev] Cannot get UrlRewriter.net to work with Mono 2.6.7
Matthew Urbano
matthew.urbano at trailerpark.com
Mon Aug 23 22:02:19 EDT 2010
I'm trying to rewrite some URLs using Intelligencia.UrlRewriter.dll from UrlRewriter.net. I have added the reference to the dll, placed the dll in the site's bin folder, and added the following lines to my web.config
<configSections>
<section name="rewriter" requirePermission="false" type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter" />
</configSections>
<httpModules>
<add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule, Intelligencia.UrlRewriter"/>
</httpModules>
<rewriter>
<rewrite url="~/fr/(.+).aspx" to="~/$1.aspx" />
</rewriter>
I built the application and uploaded the files to my http directory on a remote CentOS server where I have Mono 2.6.7 built and installed from source.
So to test I tried to go to "www.mydomain.com/fr/Default.aspx" hoping that it would just take me to the Default.aspx page in the root, but I get a 404 error instead.
Locally, I am using the Visual Studio 2010 plug-in, and I have a local MonoTools server running on a VMWare Virtual Machine. From VisualStudio, when I run the site using my local MonoTools server the rewriting works as expected.
Am I missing something on my remote server? I really don't know what I need to do in order to get this working.
--
Matthew Urbano | Web Developer
Trailer Park Interactive
6922 Hollywood Blvd., 7th floor
Hollywood, CA 90028
T: 310-845-3021
M: 305-790-1805
matthew.urbano at trailerpark.com<mailto:matthew.urbano at trailerpark.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20100823/79328960/attachment.html
More information about the Mono-devel-list
mailing list