# Irule redirction default sys\_https\_redirection

**URL:** <https://community.f5.com/t/irule-redirction-default-sys-https-redirection/69741>\
**Category:** Technical Forums\
**Tags:** application-delivery\
**Created:** [May 17, 2022, 7:26am UTC](https://community.f5.com/t/irule-redirction-default-sys-https-redirection/69741 "2022-05-17T07:26:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gajji](https://avatars.discourse-cdn.com/v4/letter/g/958977/32.png) [@Gajji](https://community.f5.com/u/Gajji)\
**Post date:** [May 17, 2022, 7:26am UTC](https://community.f5.com/t/irule-redirction-default-sys-https-redirection/69741/1 "2022-05-17T07:26:08Z")

</div>

\_sys\_https\_redirection

Does above irule work for customize https port 8443

http running on 8080 and https on 8443…

if not help me to provide new irule for the same.

---

<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:** [May 17, 2022, 8:54pm UTC](https://community.f5.com/t/irule-redirction-default-sys-https-redirection/69741/2 "2022-05-17T20:54:26Z")

</div>

Hi Gajji,

Default irule redirects to 443. You must specify the port for others.

```tcl
when HTTP_REQUEST {
	HTTP::redirect https://[getfield [HTTP::host] ":" 1]:8443[HTTP::uri]
}

```
