I do not understand anything .htaccess and I need a redirection to cache.

Currently use the following rule:
RewriteRule ^movie/(.*)/(.*)/(.*)$ app.php?view=movie&theatre=$1&ordem=$2&movie=$3 [L,QSA]

That is, the requested URL

redirects to


But I want to redirect api/cache/html/{jardins}/{0}/{robocop}.html if file exists.

Recalling that {jardins} and {0} are directories.

How to do this? :(

Read more here: Redirect in .htaccess if file exists (cache)


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: