Forum Discussion
aschi
Nimbostratus
Dec 06, 2013iRule, Redirect "SEARCH ENGINE FRIENDLY"
Hi
We have already Redirects in place which all work as expected.
Our Marketing told us now that one Redirect isn't "SEARCH ENGINE FRIENDLY"
They checked it on the following Website: http://www....
aschi
Nimbostratus
Dec 06, 2013Sorry, i made a copy/pase error because I changed the original hostname. It's redirectiong from domain1.ch to www.domain1.ch when HTTP_REQUEST { if { [HTTP::host] contains "domain1.ch" } { HTTP::redirect http://www.domain1.ch[HTTP::uri] } }
I also tried another Rule which also works great where no Hostname is needed: when HTTP_REQUEST {
if { !([string tolower [HTTP::host]] starts_with "www.") } {
HTTP::redirect http://www.[HTTP::host][HTTP::uri]"
}
}
But the I still get the message: Not search engine friendly.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
