Forum Discussion
aschi
Dec 06, 2013Nimbostratus
Sorry, 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.