[Mongrel] Can't seem to get rewrite rules to work with Apache

Patrick Berry pberry at gmail.com
Sun Mar 25 13:07:43 EDT 2007


On 3/24/07, Scott Walter <sw-ng at scottwalter.com> wrote:
>
> Hi,
>
> I'm struggling to get an Apache rewrite rule to work.   I have a
> simple rule that for a request to "a.html" will be sent to "b.html".
> However the requests for "a.html" are always sent to my Rails apps.
> Here is my  Apache configuration:
>
> <VirtualHost 216.154.219.19:80>
>
RewriteRule ^a\.html$ b.html
> </VirtualHost>
>
> Does anyone have any ideas?


If I'm not mistaken you need to tell Apache what to do when the first part
of the rule matches.

RewriteRule ^a\.html$ b.html [R]

Pat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20070325/f7443ac3/attachment-0001.html 


More information about the Mongrel-users mailing list