# Rewrite Location Attribute 302?

**URL:** <https://community.f5.com/t/rewrite-location-attribute-302/23922>\
**Category:** Technical Forums\
**Tags:** dev, irules, devops, application-delivery\
**Created:** [October 15, 2007, 2:07pm UTC](https://community.f5.com/t/rewrite-location-attribute-302/23922 "2007-10-15T14:07:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![m\_kogler\_56408](https://avatars.discourse-cdn.com/v4/letter/m/ba8739/32.png) [@m\_kogler\_56408](https://community.f5.com/u/m_kogler_56408)\
**Post date:** [October 15, 2007, 2:07pm UTC](https://community.f5.com/t/rewrite-location-attribute-302/23922/1 "2007-10-15T14:07:31Z")

</div>

i’m not familiar with iRules and so you are my last chance to get a solution for this

problem!

our developers send redirects from our webservers through the F5 to the customers

browser and they send it like this [http://blablabla](http://blablabla) and what they want me (the F5)

to is to rewrite this location attribute (302) to http **s** ://blablabla

is this possible with iRules?

tia,

manuel

---

<div class="post-metadata">

**Author:** ![Deb\_Allen\_18](https://avatars.discourse-cdn.com/v4/letter/d/34f0e0/32.png) [@Deb\_Allen\_18](https://community.f5.com/u/Deb_Allen_18)\
**Post date:** [October 15, 2007, 7:44pm UTC](https://community.f5.com/t/rewrite-location-attribute-302/23922/2 "2007-10-15T19:44:50Z")

</div>

[Click here](http://devcentral.f5.com/wiki/default.aspx/iRules/RewriteHTTPRedirect_301_to_302)

---

<div class="post-metadata">

**Author:** ![MonkRanter\_5301](https://avatars.discourse-cdn.com/v4/letter/m/ea666f/32.png) [@MonkRanter\_5301](https://community.f5.com/u/MonkRanter_5301)\
**Post date:** [October 19, 2007, 4:39pm UTC](https://community.f5.com/t/rewrite-location-attribute-302/23922/3 "2007-10-19T16:39:16Z")

</div>

I tried this iRule and it wouldn’t load. I had to make the following modification.

if {[HTTP::status] equals “301”} {
