cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
493
Views
0
Helpful
1
Replies

Using wildcard in Host header-value

jason.williams
Level 1
Level 1

I have a redirect in my configuration that if a host header matches a certain value, then it will redirect to https.

Originally I had the full host header, www.domain.com (actually www[.]domain[.]com).

However, I found out that if a user just enters "domain.com", without the www, it is not being detected and redirected.

I want to add a wildcard for the host portion.  I tried .*[.]domain[.]com.  But it seems to be hit or miss.  Sometimes it seems to work, but other times it doesn't.

Is this the correct format for what I'm trying to do?

Thanks.

Jason

1 Reply 1

chrhiggi
Level 3
Level 3

Jason-

 

  Can you send all of the relvant configuration? technically what you have should work, but there are some other things you might need (persistance rebalance, non-case sensitivity, etc.)  Also, you could just add another line to a match-any class for the 2nd header instead of including every possible combination.

Regards,

Chris Higgins

Review Cisco Networking for a $25 gift card