how tochange url for wp-includes on s3/cloudfront url


Im building an high available and fault tolerant WordPress enviroment on AWS and it working fine,

i have my linux ami with /var/www/html mounted on efs and /var/www/html/wp-content mounted on S3 bucket,

it is mounted like this: mybucket/wp-content/ to /var/www/html/wp-content so when an admin install a plugin from the admin panel the static file go directly on the s3 bucket,
or if someone want add sometings can direct from the s3 bucket

then i created a cloudfront distribution for that s3 bucket and i added a record dns whit to point to the cloudfront url,
and finally added the following line to wp-settings.php

define(‘WP_CONTENT_URL’, ‘https://static.mydomain/wp-content’)

everything is working fine!

i want to do the same thing for wp-includes folder and im wondering how to define and change the wp-includes url on the php file

Thanks in advance

EricDrvn 2 months 0 Answers 10 views 0

Leave an answer