# Redirect URL incorrect HTTP Code 302, HTTP Code 307

**URL:** <https://community.f5.com/t/redirect-url-incorrect-http-code-302-http-code-307/58684>\
**Category:** Technical Forums\
**Tags:** big-ip, security, ltm, application-delivery\
**Created:** [July 14, 2020, 3:30pm UTC](https://community.f5.com/t/redirect-url-incorrect-http-code-302-http-code-307/58684 "2020-07-14T15:30:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hoang\_Hung](https://avatars.discourse-cdn.com/v4/letter/h/779978/32.png) [@Hoang\_Hung](https://community.f5.com/u/Hoang_Hung)\
**Post date:** [July 14, 2020, 3:30pm UTC](https://community.f5.com/t/redirect-url-incorrect-http-code-302-http-code-307/58684/1 "2020-07-14T15:30:31Z")

</div>

Hi all

We have request flow: **End-user ==(HTTPS)==\> F5 (Offload SSL) ==(HTTP)==\> App Servers**

1. user request to LB url:

**[https://a.b.c.d/ARXAL/AALIndex.jsp](https://a.b.c.d/ARXAL/AALIndex.jsp)**

2. App Server return **HTTP Code 302** , redirect to URL:

**[http://a.b.c.d:80/ARXAuth/index.jsp?redirectURL=http://a.b.c.d:80/ARXAL/AALIndex.jsp](http://a.b.c.d:80/ARXAuth/index.jsp?redirectURL=http://a.b.c.d:80/ARXAL/AALIndex.jsp)**

3.LB return **HTTP Code 307** , redirect to URL:

**[https://a.b.c.d/ARXAuth/index.jsp?redirectURL=http://a.b.c.d:80/ARXAL/AALIndex.jsp](https://a.b.c.d/ARXAuth/index.jsp?redirectURL=http://a.b.c.d:80/ARXAL/AALIndex.jsp)**

4. App Server received request from LB and popup windows with URL:

**[https://a.b.c.d/ARXAuth/LoginScreen.jsp?redirectURL=http://a.b.c.d:80/ARXAL/AALIndex.jsp&userType=cop](https://a.b.c.d/ARXAuth/LoginScreen.jsp?redirectURL=http://a.b.c.d:80/ARXAL/AALIndex.jsp&userType=cop)**

Plz help us.

---

<div class="post-metadata">

**Author:** ![Enes\_Afsin\_Al](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/enes_afsin_al/32/15359_2.png) [@Enes\_Afsin\_Al](https://community.f5.com/u/Enes_Afsin_Al)\
**Post date:** [July 16, 2020, 10:53am UTC](https://community.f5.com/t/redirect-url-incorrect-http-code-302-http-code-307/58684/2 "2020-07-16T10:53:44Z")

</div>

Hi Hoang Hung,

If you configured HTTP Strict Transport Security(HSTS) in load balancer or servers, redirection code is 307.

If you want 302 redirect, you can remove hsts header and clear hsts settings in browser.

**Clean HSTS:** [https://www.thesslstore.com/blog/clear-hsts-settings-chrome-firefox/](https://www.thesslstore.com/blog/clear-hsts-settings-chrome-firefox/)

---

<div class="post-metadata">

**Author:** ![Hoang\_Hung](https://avatars.discourse-cdn.com/v4/letter/h/779978/32.png) [@Hoang\_Hung](https://community.f5.com/u/Hoang_Hung)\
**Post date:** [July 19, 2020, 3:51pm UTC](https://community.f5.com/t/redirect-url-incorrect-http-code-302-http-code-307/58684/3 "2020-07-19T15:51:08Z")

</div>

Hi eaa

If we use same your solution, we need config on all my people. But it is web sevice provide for user Internet . So we feel that it is not good solution.

Thanks eaa.

Do u know other solution ?
