Content Rules not work for first request

0

I have the following content rules setup:
I have a Virtual IP address with 3 subVS:

VIP is setup with mostly default settings/blank settings. I did add 2 SSL Certs and have Reencrypt selected. subVS are also mostly using default settings:
SubVS Type:HTTP-HTTP/2-HTTPS
Content Switching: Enabled
Real Server Settings 

Rule assigned:

Other SubVS is setup the same way, but had a different real server URL and has the "photo" content rule. The issue I'm having is if i go to the the URL: www.example.com I often get redirected to photo.example.com. It seems to only happen once, then if i type in the URL again i'm directed to the correct site. Repeatably typing in the URL results in the correct page loading, www. 

Any idea why this is happening? Did I miss something in the setup?

1 comment

Avatar
0
andcbii+kemp

I think i figured out my issue. For my second domain photo.example.com I'm trying to redirect photo.example.com to photo.example.com/photo. To do this i updated Advanced Properties -> "Not Available Redirection Handling" to Error Code: 302 Found and entered a redirect URL. Once I removed these settings www.example.com is no longer redirecting to photo.example.com

I was able to get my setup to work by adding a content role to the photo.example.com. 

https://support.kemptechnologies.com/hc/en-us/articles/203125019-Content-Rules#MadCap_TOC_33_2

example 6.11 and add the rule under HTTP Header Modifications.