Forum Discussion
yihwen_100254
Jun 14, 2011Nimbostratus
Generic iRule to redirect domain.com to www.domain.com
Hi
I am planning to create an generic iRule to perform a http://domain.com to https://www.domain.com I know in the F5 v10.x.x, there is a _sys_https_redirect and that will actually redirect ...
yihwen_100254
Jun 15, 2011Nimbostratus
Hi Aaron and Michael
Thanks for your code. I have tried both your codes but still not working. Not sure what is going on?
Jun 15 11:20:38 local/tmm info tmm[5212]: Rule https_www_redirect : 103.63.211.158:3462: HEAD request to /
Jun 15 11:21:39 local/tmm info tmm[5212]: Rule https_www_redirect : 103.63.211.158:3986: HEAD request to /
Jun 15 11:22:39 local/tmm1 info tmm1[5213]: Rule https_www_redirect : 103.63.211.158:4585: HEAD request to /
Jun 15 11:23:40 local/tmm1 info tmm1[5213]: Rule https_www_redirect : 103.63.211.158:1255: HEAD request to /
Jun 15 11:24:40 local/tmm1 info tmm1[5213]: Rule https_www_redirect : 103.63.211.158:1821: HEAD request to /
Jun 15 11:25:41 local/tmm info tmm[5212]: Rule https_www_redirect : 103.63.211.158:2410: HEAD request to /
Jun 15 11:26:41 local/tmm info tmm[5212]: Rule https_www_redirect : 103.63.211.158:2936: HEAD request to /
Jun 15 11:27:41 local/tmm info tmm[5212]: Rule https_www_redirect : 103.63.211.158:3472: HEAD request to /
Jun 15 11:28:42 local/tmm info tmm[5212]: Rule https_www_redirect : 103.63.211.158:4036: HEAD request to /
Jun 15 11:29:43 local/tmm info tmm[5212]: Rule https_www_redirect : 103.63.211.158:4586: HEAD request to /
Jun 15 11:30:41 local/tmm info tmm[5212]: Rule https_www_redirect : 103.63.211.158:23950: GET request to domain.com/
Jun 15 11:30:41 local/tmm info tmm[5212]: Rule https_www_redirect : 103.63.211.158:23950: Redirecting to https://domain.com/
Jun 15 11:30:41 local/tmm1 info tmm1[5213]: Rule https_www_redirect : 203.12.2.160:50661: GET request to domain.com/
Jun 15 11:30:41 local/tmm1 info tmm1[5213]: Rule https_www_redirect : 203.12.2.160:50661: Redirecting to https://domain.com/
Jun 15 11:30:43 local/tmm info tmm[5212]: Rule https_www_redirect : 103.63.211.158:1146: HEAD request to /
Jun 15 11:30:43 local/tmm info tmm[5212]: Rule https_www_redirect : 103.63.211.158:1146: Redirecting to https:///
Jun 15 11:30:47 local/tmm info tmm[5212]: Rule https_www_redirect : 103.63.211.158:23950: GET request to domain.com/
Jun 15 11:30:47 local/tmm info tmm[5212]: Rule https_www_redirect : 103.63.211.158:23950: Redirecting to https://domain.com/
Jun 15 11:31:43 local/tmm info tmm[5212]: Rule https_www_redirect : 103.63.211.158:1664: HEAD request to /
Jun 15 11:31:43 local/tmm info tmm[5212]: Rule https_www_redirect : 103.63.211.158:1664: Redirecting to https:///
Jun 15 11:32:44 local/tmm info tmm[5212]: Rule https_www_redirect : 103.63.211.158:2210: HEAD request to /
Jun 15 11:32:44 local/tmm info tmm[5212]: Rule https_www_redirect : 103.63.211.158:2210: Redirecting to https:///
Jun 15 11:33:45 local/tmm info tmm[5212]: Rule https_www_redirect : 103.63.211.158:2880: HEAD request to /
Jun 15 11:33:45 local/tmm info tmm[5212]: Rule https_www_redirect : 103.63.211.158:2880: Redirecting to https:///
Jun 15 11:34:45 local/tmm1 info tmm1[5213]: Rule https_www_redirect : 103.63.211.158:3407: HEAD request to /
Jun 15 11:34:45 local/tmm1 info tmm1[5213]: Rule https_www_redirect : 103.63.211.158:3407: Redirecting to https:///
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects