-
-
Save iBasit/e55b632ec62fcb844fd7 to your computer and use it in GitHub Desktop.
This file contains 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
# If the requested filename exists, simply serve it. | |
# We only want to let Apache serve files and not directories. | |
RewriteCond %{REQUEST_FILENAME} -f | |
RewriteCond %{REQUEST_URI} !^/themes/stores/(.*) | |
RewriteCond %{REQUEST_URI} !^/themes/shop/(.*) | |
RewriteRule .? - [L] | |
# allow stores asset folder only | |
RewriteCond %{REQUEST_FILENAME} \.(gif|jpe?g|png|js|css|svg|svgz|eot|otf|woff|woff2|ttf|swf|php|ico|txt|pdf|xml)$ | |
RewriteCond %{REQUEST_URI} ^/themes/stores/(.*)/asset/.* | |
RewriteRule .? - [L] | |
# allow shop asset folder only | |
RewriteCond %{REQUEST_FILENAME} \.(gif|jpe?g|png|js|css|svg|svgz|eot|otf|woff|woff2|ttf|swf|php|ico|txt|pdf|xml)$ | |
RewriteCond %{REQUEST_URI} ^/themes/shop/(.*)/asset/.* | |
RewriteRule .? - [L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment