Last active
July 25, 2019 18:36
-
-
Save chrispian/614281d8807d3f3c5f6984f648d51876 to your computer and use it in GitHub Desktop.
URL Rewrite for local WP Dev using Local by Flywheel
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
# Basic rules to redirect local uploads to the actual live domain. | |
# Just edit .htaccess in the app/public folder. | |
# Credit to Aubrey Portwood for the idea (https://github.com/aubreypwd) | |
RedirectMatch 301 ^/wp-content/uploads/(.*) https://DOMAIN/wp-content/uploads/$1 | |
RedirectMatch 301 ^/wp-content/themes/THEMENAME/images/(.*) https://DOMAIN/wp-content/themes/THEMENAME/images/$1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment