Hide part of the URL from AWS Application Load Balancer

0

Hello,

I have url: https://backend-test.com/test/index.html. And i have rule within ALB that says If HOST HEADER is https://backend-test.com/ forward to target group test. I want to restrict /index.html and when customers browser this url it shows only ttps://backend-test.com/test, without the /index.html part.

How can i achieve this with AWS ALB Rules?

Vasko
asked 6 months ago248 views
1 Answer
0

3 Options..

  • You would have to create a rule that performs a redirect 301 or 302.
  • You could also block access to this URL but why would this be an issue?
  • You could on your webserver create some rules if using a .htaccess file to perform a URL redirect/rewrite
profile picture
EXPERT
answered 6 months ago
  • Yeah, but how to structure that rule? I already have a rule that points to the target group. So am i suppose to add another rule? Would you like to give me an example?

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.

Guidelines for Answering Questions