@@ 98-101 (lines=4) @@ | ||
95 | $url = parse_url( $url ); |
|
96 | ||
97 | if ( $normalize_www ) { |
|
98 | if ( $url[ 'host' ] === "www.{$option_url[ 'host' ]}" ) { |
|
99 | // remove www if not present in option URL |
|
100 | $url[ 'host' ] = $option_url[ 'host' ]; |
|
101 | } |
|
102 | if ( $option_url[ 'host' ] === "www.{$url[ 'host' ]}" ) { |
|
103 | // add www if present in option URL |
|
104 | $url[ 'host' ] = $option_url[ 'host' ]; |
|
@@ 102-105 (lines=4) @@ | ||
99 | // remove www if not present in option URL |
|
100 | $url[ 'host' ] = $option_url[ 'host' ]; |
|
101 | } |
|
102 | if ( $option_url[ 'host' ] === "www.{$url[ 'host' ]}" ) { |
|
103 | // add www if present in option URL |
|
104 | $url[ 'host' ] = $option_url[ 'host' ]; |
|
105 | } |
|
106 | } |
|
107 | ||
108 | if ( $url[ 'host' ] === $option_url[ 'host' ] ) { |