Forum: NGINX Change this nginx rewrite to apache htaccess

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Milli S. (Guest)
on 2009-05-26 18:48
The following post explains about the page caching in rails with Nginx.

I like to implement this solution with my app but on Apache. So, the
main block/route is

  if (-f $request_filename) {
    if (-f /cache$request_filename) {
    rewrite (.*) /cache$1 break;

  if (-f /cache$request_filename.html) {
    rewrite (.*) /cache$1.html break;
What could be the Apache equivalent for the above Nginx related code??
This topic is locked and can not be replied to.