Forum Discussion
DM_5174
Nov 07, 2007Nimbostratus
Case-sensitive URL Redirection
Hello all,
I have created a 4x iRule that will redirect based on specific
words after the FQDN "http://%h/". So if i put "http://www.primarysite.com",
i get redirected to the main ...
hooleylist
Nov 07, 2007Cirrostratus
I assume you're getting a 404 because the request is for /home and that doesn't exist on the web servers in the apache pool.
Instead of ==, try using matches_regex. Also, you should specify the protocol in the redirect.
if (http_host == "www.primarysite.com" and http_uri matches_regex "/[hH][oO][mM][eE]") {
redirect to "https://www.secondarysite.com/secure/"
} else {
use pool APACHE_WEB_SERVERS
}
Aaron
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