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
gefragt vor 7 Monaten270 Aufrufe
1 Antwort
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
EXPERTE
beantwortet vor 7 Monaten
  • 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?

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen