For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Kevin_Manavadar's avatar
Kevin_Manavadar
Icon for Nimbostratus rankNimbostratus
Jul 14, 2015

Need to use datagroup in content of site

Hi ,

 

I am using below Irule to check URI and display content. Now i want to use Datagroup for that as there are many URLs. I have below sample code.

 

if { [HTTP::uri] starts_with "/mypage-abcd.htm" } {
    HTTP::respond 200 content {abcd}
    return 0
}

Now i want to display the content from datagroup to {abcd}.

 

Datagroup My_Content

 

abcd bcde cdef

 

Now It should display all content respectively. Like if page is mypage-bcde.htm then content should be {bcde}

 

Can somebody help me to write the code. I am very new to this.

 

2 Replies