Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7501523
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T20:33:46+00:00 2026-05-29T20:33:46+00:00

How do you make $s3->get_object_url() from PHP SDK return: http://my-bucket.my-domain.com/example.txt instead of http://my-bucket.s3.amazonaws.com/example.txt

  • 0

How do you make $s3->get_object_url() from PHP SDK return:

http://my-bucket.my-domain.com/example.txt

instead of

http://my-bucket.s3.amazonaws.com/example.txt

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T20:33:49+00:00Added an answer on May 29, 2026 at 8:33 pm

    S3 doesn’t know if a bucketname has a CNAME set up for it, so you’ll have to do it yourself. A simple call to preg_replace should work fine.

    $url = preg_replace('@^http://my-bucket\.s3\.amazonaws\.com/@Ui', 'http://my-bucket.my-domain.com/', $url);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the Zend framework and the openid selector from http://code.google.com/p/openid-selector/ - however I
I tried to make http get request with code: String username = test\\v100; String
Had to download Command Line Tools from Apple to get make to work, but
I make an AJAX GET request to a PHP script to compare a value
I'm trying to make a https get request from behind a squid proxy with
I make an AJAX request like so using JQuery: $.ajax({ type: GET, url: getvideo.php,
How do I pass a file path from a file input to my php
I make some Ajax calls from inside a javascript object.: myObject.prototye = { ajax:
When I make an request to the api for getting events from a specific
I am trying to make a get request from the GWT servlet to get

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.