Answer the question
In order to leave comments, you need to log in
How to rewrite a rewrite rule from Apache to Nginx?
Hello, mainly used Apache, now faced with Nginx. How to rewrite this rule on Nginx?
<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_FILENAME} ^.*(pdf|epub)$
RewriteRule ^(.*)$ /wp-content/themes/divi-child/download.php?file=$1 [L]
</IfModule>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question