-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
in local dev, grab image from remote host if not found locally (#247)
* in local dev, grab image from remote host if not found locally * add local hosting docs. * add media export script * update export targets * remove unused plugin that is disabled * adding excluded tables arg refs: patronage/bubs-timber#156 * actual correct path to disable google locally * add debug code from timber refs: patronage/bubs-timber#166
- Loading branch information
Showing
10 changed files
with
102 additions
and
9 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# CUSTOM | ||
<IfModule mod_rewrite.c> | ||
|
||
## Rewrite images if they don't exist locally | ||
## Allows us to pull staging server SQL and use same images | ||
## This isn't meant to be deployed, so make sure it's excluded | ||
RewriteCond %{REQUEST_FILENAME} !-f | ||
RewriteRule ^wp-content/uploads/(.*)$ https://bubsnext.wpengine.com/wp-content/uploads/$1 [L] | ||
|
||
# Simple 404 for missing files | ||
<FilesMatch "(\.jpe?g|gif|png|bmp|ico)$"> | ||
ErrorDocument 404 "File Not Found" | ||
</FilesMatch> | ||
|
||
</IfModule> | ||
# END CUSTOM | ||
|
||
# BEGIN WordPress | ||
<IfModule mod_rewrite.c> | ||
## Remove index.php from all URLs | ||
RewriteEngine On | ||
RewriteBase / | ||
RewriteRule ^index\.php$ - [L] | ||
RewriteCond %{REQUEST_FILENAME} !-f | ||
RewriteCond %{REQUEST_FILENAME} !-d | ||
RewriteRule . /index.php [L] | ||
</IfModule> | ||
# END WordPress |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
_build/ | ||
_data/ | ||
_init/ | ||
.htaccess | ||
.editorconfig | ||
.env | ||
.gitignore | ||
|
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,4 +18,4 @@ | |
// echo $redirect; | ||
return wp_redirect( $redirect, 307 ); | ||
|
||
?> | ||
?> |