FORCE_SSL_ADMIN Breaks Virtual Hosting Option
-
If you’re using
define('FORCE_SSL_ADMIN', true);in yourwp-config.phpfile, which forces all WordPress admin logins to be redirected to the protectedhttps://URL, and you have the “Bucket is setup for virtual hosting” option enabled in the Amazon S3 and Cloudfront plugin, then whenever you upload a file via the Media Uploader the File URL gets incorrectly stored with anhttps://prefix.This should only happen when the “Always serve files over https (SSL) ” option is also enabled, but it happens even when that option is disabled.
Since I don’t have SSL setup for my Amazon S3 virtual host (
cdn.raamdev.com), all file URLs end up broken becuase the plugin stores the links ashttps://cdn.raamdev.com/....
The topic ‘FORCE_SSL_ADMIN Breaks Virtual Hosting Option’ is closed to new replies.