Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

SSL URL REWRITE SYNTAX

Hi team.

 

I'm trying to write a SSL URL REWRITE expression but it doesn't work.

 

Imagine that I wuold write a location that covers:

 

www.cisco.com

www1.cisco.com/new

www.2.cisco.com/old

web.cisco.com

 

the fixed part here is ".cisco.com" and the headers and trailer can vary.

 

The experssion I wrote and doesn't work is:

 

.*\.cisco\.com

 

What I'm doing wrong?

 

Thank you!!

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Hi David,No difference

Hi David,

No difference basically. In fact .*cisco\.com.* is what you should use since . has not literal meaning and that's why you use \.

 

Regards,

Kanwal

3 REPLIES
Cisco Employee

Hi David,.*\.cisco\.com will

Hi David,

.*\.cisco\.com will match www.cisco.com and web.cisco.com but it will not match www1.cisco.com/new because "/". If you do .*\.cisco\.com/ then it will match www1.cisco.com/new and www.2.cisco.com/old but not www.cisco.com and web.cisco.com. I just tried that in regex builder. You can try that too. You can use .*cisco.com.* i.e wild cards both at begining and end. That should match everything before and after cisco.com.

Regards,

Kanwal

 

Hi Kanwal. What difference

Hi Kanwal.

 

What difference from:

.*cisco.com.*

 

to 

 

.*cisco\.com.*

 

Thank you!

 

Cisco Employee

Hi David,No difference

Hi David,

No difference basically. In fact .*cisco\.com.* is what you should use since . has not literal meaning and that's why you use \.

 

Regards,

Kanwal

59
Views
0
Helpful
3
Replies