cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
736
Views
0
Helpful
3
Replies

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

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

View solution in original post

3 Replies 3

Kanwaljeet Singh
Cisco Employee
Cisco Employee

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 from:

.*cisco.com.*

 

to 

 

.*cisco\.com.*

 

Thank you!

 

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