Answer the question
In order to leave comments, you need to log in
How in Apache to give the specified file to any request?
Hello everyone
Plz tell me how to give the specified file to any request in Apache? In other words, is there an analogue of nginx: try_files in Apache?
Answer the question
In order to leave comments, you need to log in
Plz tell me how to give the specified file to any request in Apache?This is how it works for me:
RewriteEngine On
RewriteRule ^(.*)$ luboy_file.txt [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question