fix(oembed.php + og-image.php): route oembed images through proxy
This commit is contained in:
parent
ec03d7ccef
commit
df63ad1799
5 changed files with 17 additions and 18 deletions
|
@ -48,6 +48,11 @@ RewriteRule ^music/genres/([^/]+)/?$ music/genres/index.php [L]
|
|||
RewriteRule ^tags/([^/]+)(?:/([0-9]+))?/?$ tags/index.php [L]
|
||||
|
||||
## open graph assets
|
||||
|
||||
# w/out version
|
||||
RewriteRule ^og/([a-z0-9\-]+)/([a-f0-9\-]+)\.([a-z0-9]+)$ /api/og-image.php?id=$2&class=$1&extension=$3 [L]
|
||||
|
||||
# w/version
|
||||
RewriteRule ^og/([a-z0-9\-]+)/([\d\.]+)/([a-f0-9\-]+)\.([a-z0-9]+)$ /api/og-image.php?id=$3&class=$1&v=$2&extension=$4 [L]
|
||||
|
||||
## oembed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue