Forum: NGINX Change this nginx rewrite to apache htaccess

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community 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.

http://blog.hasmanythrough.com/2008/1/30/segregate...

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

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

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