Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter hs1972

    (@hs1972)

    I checked with the cloudfront URL in the WordPress plugin and that works. It seems to be it’s not seeing CNAME I’ve set up

    Did you ever manage to fix this?

    I am having the same issue here 🙁

    It happens because of wrong region name and if you correct region name, it doesn’t include bucketname.

    Do this if you can edit core files:
    amazon-s3-and-cloudfront.php in Classes

    Comment out these lines:

    function sanitize_custom_domain( $domain ) {
    		//$domain = preg_replace( '@^[a-zA-Z]*:\/\/@', '', $domain );
    		//$domain = preg_replace( '@[^a-zA-Z0-9\.\-]@', '', $domain );
    
    		return $domain;
    	}

    470 and 471 in “sanitize_custom_domain” function

    Then go to your wordpress backend and set custom domain:
    s3-us-west-2.amazonaws.com/BUCKET_NAME

    Jquery validation won’t let you save it.
    So you will have to enable the save button.
    You can do it by inspect element.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Broken images’ is closed to new replies.