Skip to content

Instantly share code, notes, and snippets.

@duoeg
Created December 14, 2023 19:56
Show Gist options
  • Save duoeg/2586ba47072f59b1b803c9c40850ab7d to your computer and use it in GitHub Desktop.
Save duoeg/2586ba47072f59b1b803c9c40850ab7d to your computer and use it in GitHub Desktop.
Appeler uploads d'un autre host
# Put before WordPress rules
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(wp-content/uploads/.*) https://www.example.ca/$1 [L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment