Created
October 7, 2021 01:31
-
-
Save strsar/83a9538187f31ecbdea0cff39bc9d6ca to your computer and use it in GitHub Desktop.
[htaccess] Load production assets if not on local
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
| ## LOAD PRODUCTION ASSET IF NOT LOCAL | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{HTTP_HOST} ^local\.test$ | |
| RewriteRule ^uploads/(.*)$ https://production.com/uploads/$1 [NC,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment