Forum Discussion
cnorgay_17044
Nimbostratus
Jan 18, 2008pls: help .....
hi gurus
convert the below from apache syntax to irules:::.thanks alot
apache syntax:
RewriteEngine on
RewriteRule ^/$ https://aaaa.bbbb.com/hp/index.php?id=30&L=0 [NC,R,L]
RewriteCond %{REQUEST_URI} ^/favicon.ico$
RewriteRule ^(.+)$ https://mylife.bbbb.com/$1 [NC,P,L]
RewriteCond %{REQUEST_URI} !^/favicon.ico$
RewriteRule ^(.+)$ https://www.cccc.com/$1 [NC,P,L]
- hoolio
Cirrostratus
Hello,when HTTP_REQUEST { Check requested URI (set to lower case) switch [string tolower [HTTP::path]] { /favicon.ico { Request was for the favicon.ico so rewrite Host header to mylife.bbbb.com HTTP::header replace Host mylife.bbbb.com } default { Request wasn't to /favicon.ico, so rewrite Host to www.cccc.com HTTP::header replace Host www.cccc.com } } }
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