Answer the question
In order to leave comments, you need to log in
How to make a redirect to index.php of all requests, except for graphic files and css?
I'm making a front controller, redirecting all requests to index.php. How to exclude graphic files and css from falling under this rule - rewrite ^.*$ /index.php;
Or how to do it correctly and correctly?
Answer the question
In order to leave comments, you need to log in
Like this for example)
location ~* ^.+\.(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|rss|atom|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf|pdf|txt|webp)$ {
access_log off;
expires 8d;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question