# Browser request URL changin

**URL:** https://discourse.haproxy.org/t/browser-request-url-changin/5110
**Category:** Help!
**Created:** [April 22, 2020, 3:49am UTC](https://discourse.haproxy.org/t/browser-request-url-changin/5110 "2020-04-22T03:49:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![naushad79](https://avatars.discourse-cdn.com/v4/letter/n/7993a0/32.png) [@naushad79](https://discourse.haproxy.org/u/naushad79)
#### Post date: [April 22, 2020, 3:49am UTC](https://discourse.haproxy.org/t/browser-request-url-changin/5110/1 "2020-04-22T03:49:44Z")

</div>

Need some help with haproxy rewrite rules.

How it works

1. https request sent to AWS application load balancer (e.g. [https://abc.com](https://abc.com))
2. AWS alb send the request to the haproxy which listens to port 80
3. haproxy serves the request

the issue here is when I access the url (e.g. [https://abc.com](https://abc.com)) it loads, when I login to the page the browser url changes to [https://abc.com:8888](https://abc.com:8888) (port 8888 which is the backend server port)

how do I make sure that haproxy doesn’t add port to the request url

following are some configs that I tried

```auto
http-request replace-value Host (.*):8888 \1

```

```auto
http-request replace-value Host (.*):.* 1

```

```auto
acl app_port dst_port 8888
http-request redirect location https://%[req.hdr(Host)]%[capture.req.uri] if app_port

```

nothing worked

any help would be appreciated
