[Mongrel] Can't seem to get rewrite rules to work with Apache
pberry at gmail.com
Sun Mar 25 13:07:43 EDT 2007
On 3/24/07, Scott Walter <sw-ng at scottwalter.com> wrote:
> 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 126.96.36.199:80>
RewriteRule ^a\.html$ b.html
> 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]
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mongrel-users