# 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; | |
} |
This comment has been minimized.
This comment has been minimized.
Using Browsersync with Valet and NginxIn order to use Browsersync with Valet & Nginx you will need to add
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
Nginx Notes
Nginx tries to apply blocks from the top to the bottom, therefore this needs to go at the top of the server block directly underneath: