# PEM Http-Redirect not working

**URL:** <https://community.f5.com/t/pem-http-redirect-not-working/35712>\
**Category:** Technical Forums\
**Tags:** irules, big-ip, application-delivery\
**Created:** [December 13, 2018, 5:53am UTC](https://community.f5.com/t/pem-http-redirect-not-working/35712 "2018-12-13T05:53:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lem\_379182](https://avatars.discourse-cdn.com/v4/letter/l/838e76/32.png) [@Lem\_379182](https://community.f5.com/u/Lem_379182)\
**Post date:** [December 13, 2018, 5:53am UTC](https://community.f5.com/t/pem-http-redirect-not-working/35712/1 "2018-12-13T05:53:47Z")

</div>

Hi, we’re currently facing a problem in redirecting a website to a custom block page. We managed to block the facebook but it doesn’t redirecting to the block page. We created a policy on pem and add fb-block-rule:

 ![0691T000006ApwXQAS.png](https://d20hrnpixdzcsd.cloudfront.net/original/3X/b/9/b9880a4dabf2e4831ae370de5f26b56134399e1e.png)

We use this iRule and applied it to a virtual server 192.168.0.23.

```tcl
when HTTP_REQUEST {

        HTTP::respond 200 content "
    

    
    FORBIDDEN SITE

    

    
    Hi there! Thanks for stopping by.
    But this page is restricted.. and you are being monitored.
    ===This is from your DCMD Administrator=== 
        
    "
          }

```

This is what we would like to show:

 ![0691T000006ApwYQAS.png](https://d20hrnpixdzcsd.cloudfront.net/original/2X/d/d1fb4885a0f3968ddfc3c86687dd6273dc38aa46.png)

We are hoping for your kind assistance. Thanks!
