cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
204
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
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 3
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

CreatePlease to create content
Content for Community-Ad
August's Community Spotlight Awards