S
S
slonzver2016-05-24 20:08:28
htaccess
slonzver, 2016-05-24 20:08:28

How to correctly change the rewritecound condition for the cache?

Hi all!
here I made such a rule, if there is a file in the cache folder, then we show it, if not, then we skip the rule, but the rule does not work because of the first condition

RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_URI} ^/$
RewriteCond %{DOCUMENT_ROOT}/cache/index\.html -f
RewriteRule ^(.*)$ cache/index\.html [L]

Please help me find the problem, thanks!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question