# Help for a newbie

**URL:** <https://community.f5.com/t/help-for-a-newbie/3078>\
**Category:** Technical Forums\
**Tags:** irules, dev, devops, application-delivery\
**Created:** [October 13, 2006, 12:19am UTC](https://community.f5.com/t/help-for-a-newbie/3078 "2006-10-13T00:19:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Melissa\_Good\_10](https://avatars.discourse-cdn.com/v4/letter/m/c57346/32.png) [@Melissa\_Good\_10](https://community.f5.com/u/Melissa_Good_10)\
**Post date:** [October 13, 2006, 12:19am UTC](https://community.f5.com/t/help-for-a-newbie/3078/1 "2006-10-13T00:19:54Z")

</div>

Hello. I am very new to the BigIP, and faced with having to solve a problem for an active website.

Here is the issue. The website has secure pages, which are kept in a specific directory. I have written an iRule to redirect those pages to HTTPS, and that is working fine. However, the pages have images on them being called from a directory outside the /secure one, and they cause ‘you are being redirected to a non secure page’ pop up boxes for those with heightened browser security. Is there a way around this?

Second option - our web designers put up a test set that has all the files, including the images, in a secure directory, or being redirected. The same iRule being used for option one does a strange thing - http pages are fine, but when attempting to go to secure pages, the website issues a ‘bad gateway’ error and the request times out.

The iRule in use is - (There are two VIPs, one for 80, one for 443)

when HTTP\_REQUEST {

if { [HTTP::uri] contains “/secure” } {

HTTP::redirect https://[HTTP::host][HTTP::uri]

}

else {

pool NCL-com-test-pool1

}

}

and the return iRUle in use applied to the 443 vip is -

when HTTP\_REQUEST {

if { [HTTP::uri] contains “/secure” } {

pool [NCL.com](http://NCL.com)\_443\_pool1

}

else {

HTTP::redirect http://[HTTP::host][HTTP::uri]

}

}

Can anyone assist? I have seen lots of great suggestions here but I am afraid we’re trying to do something silly.

M
