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

http redirect parsing full requested url

mattbclarke
Level 1
Level 1

Hi,

We currently have a http redirect under a content rule redirecting to the same domain using ssl as follows:

content test-red

vip address 10.1.1.1

port 80

protocol tcp

redirect "https://www.domain.com"

active

This works fine if a user requests http://www.domain.com and directs them to https://www.domain.com

however we now have a requirement for someone to request different pages and get redirected..

from instance to request http://www.domain.com/page1 and get redirected to https://www.domain.com/page1 however when we try this with the config above it just drops us to the home page...

I have tried using redirect "https://www.domain.com/*" however this doesn't work and says page cannot be found..

Does anyone know of a way round this? I was hoping there must be some sort of variable we can use for this or do I need to look at url re-writing?

Thanks in advance

Matt

1 Reply 1

Gilles Dufour
Cisco Employee
Cisco Employee

this is explained here

http://www.cisco.com/en/US/products/hw/contnetw/ps789/products_configuration_example09186a00801de8d6.shtml

You have to use the domain command instead of the redirect.

Gilles.

Review Cisco Networking for a $25 gift card