-
-
Save pmgarman/8fba357c97193633a66d 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
# Apache .htaccess | |
RedirectMatch 301 ^/wp-content/uploads/(.*) http://livewebsite.com/wp-content/uploads/$1 | |
# Nginx | |
location ~ ^/wp-content/uploads/(.*) { | |
rewrite ^/wp-content/uploads/(.*)$ http://livewebsite.com/wp-content/uploads/$1 redirect; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using Browsersync with Valet and Nginx
In order to use Browsersync with Valet & Nginx you will need to add
proxy_*
settings to your root location block. There should already be arewrite ^
there pointing toserver.php
. The Proxy settings will go underneath therewrite
setting. Like so: