Created
May 5, 2021 20:16
-
-
Save matdave/cffd0a53424eba4ac3a0a93d2bdff73b to your computer and use it in GitHub Desktop.
rewrite file path for language subfolders
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
location ~* \.(?:ico|css|js|jpe?g|png|gif|svg|pdf|mov|mp4|mp3|woff|woff2|otf|ttf)$ { | |
expires 7d; | |
add_header Pragma public; | |
add_header Cache-Control "public"; | |
gzip_vary on; | |
rewrite ^/(it|de|es|fr|cz)(/.*)$ $2 last; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment