03-14-2014 03:50 AM
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!!
Solved! Go to Solution.
03-17-2014 08:56 AM
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
03-14-2014 08:26 AM
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
03-17-2014 05:28 AM
Hi Kanwal.
What difference from:
.*cisco.com.*
to
.*cisco\.com.*
Thank you!
03-17-2014 08:56 AM
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
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: