Skip to content

Domain Redirect on S3 missing colon https//

0

I host the domain on Route 53, and I need to redirect the website to another domain. Looking at the information online I created an S3 bucket called householdcavalry.co.uk and added the static website hosting as per the screenshot.

When I click the object Endpoint it takes me to... https//householdcavalrymuseum.co.uk//

Static Website settings

asked a year ago242 views

6 Answers
0

The issue you're experiencing with the redirect is likely due to a small formatting error in your S3 bucket's static website hosting configuration. Based on the screenshot you provided, the protocol in the "Host name" field is missing a colon after "https". This is causing the malformed URL in your redirect.

To fix this, you should edit your S3 bucket's static website hosting settings as follows:

  1. Open the Amazon S3 console and navigate to your bucket (householdcavalry.co.uk).
  2. Go to the "Properties" tab.
  3. Under "Static website hosting", click "Edit".
  4. In the "Host name" field, ensure the URL is correctly formatted as "https://householdcavalrymuseum.co.uk" (note the colon after "https").
  5. For the "Protocol" setting, choose "https" from the dropdown menu.
  6. Save your changes.

After making these adjustments, the redirect should work correctly, sending visitors to "https://householdcavalrymuseum.co.uk" without the extra forward slashes at the end.

Remember that it may take a short while for the changes to propagate. If you're still experiencing issues after making these corrections, double-check your Route 53 settings to ensure they're correctly pointing to your S3 bucket's website endpoint.

Also, make sure that your S3 bucket has the appropriate permissions set to allow public access for the static website hosting feature to work properly.

Sources
(Optional) Configuring a webpage redirect - Amazon Simple Storage Service
Tutorial: Configuring a static website using a custom domain registered with Route 53 - Amazon Simple Storage Service

answered a year ago

  • I've updated the settings as per your suggestion, although I'm sure that's how I set it up to begin with and read somewhere that you must not enter the HTTPS part of the URL in the host name section.

  • This isn't working. I'm getting the same results as I did before adding https:// to the domain name. Do you know any reason this could be happening?

0

Your redirect seems to be working ok for me

EXPERT

answered a year ago

0

Still not working. So it's not a propagation issue.

Any help would be greatly appreciated.

answered a year ago

  • Having the very same problem Brother. It looks like the 'problem' disappeared. Could you please share how? :) Peace to you...

0

I also had the same issue. It turned out to be with the local browser cache in Chrome on my windows PC.

Firstly, confirm that the redirect is working correctly from a different computer or mobile phone. If it is, then the issue you have is probably also on just your local computer.

I resolved it using the following approx approach. Apologies it's not specific, I can't re-create the issue as I have now resolved it!

  1. Open the website and let the redirect fail.
  2. Open Chrome Developer Tools (F12)
  3. Select 'Network' in the top bar.
  4. In the list of items underneath the graph, you should see the name of the website you are trying to redirect to. Right click on this and select Clear Browser Cache, and then Clear Browser Cookies.

Hope this works for you.

answered a year ago

  • I've tried it on a different PC that's a fresh install, so it doesn't have a cache, and this brought up the website address...

    Request URL http://https//householdcavalrymuseum.co.uk//

    I don't see anything in the settings that might explain why the URL appears this way. Any further suggestions would be greatly appreciated.

0

I've updated the settings to this. Updated screen shot

The Endpoint that I'm testing is this.... http://householdcavalry.co.uk.s3-website-us-east-1.amazonaws.com/

answered a year ago

0

It's been 24 hours and the updated settings are still resolving to... https//householdcavalrymuseum.co.uk//

I can't figure out why. Any help would be greatly appreciated.

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.