|
@@ 187-190 (lines=4) @@
|
| 184 |
|
return $url; |
| 185 |
|
} |
| 186 |
|
|
| 187 |
|
if ( $url[ 'host' ] === "www.{$option_url[ 'host' ]}" ) { |
| 188 |
|
// remove www if not present in option URL |
| 189 |
|
$url[ 'host' ] = $option_url[ 'host' ]; |
| 190 |
|
} |
| 191 |
|
if ( $option_url[ 'host' ] === "www.{$url[ 'host' ]}" ) { |
| 192 |
|
// add www if present in option URL |
| 193 |
|
$url[ 'host' ] = $option_url[ 'host' ]; |
|
@@ 191-194 (lines=4) @@
|
| 188 |
|
// remove www if not present in option URL |
| 189 |
|
$url[ 'host' ] = $option_url[ 'host' ]; |
| 190 |
|
} |
| 191 |
|
if ( $option_url[ 'host' ] === "www.{$url[ 'host' ]}" ) { |
| 192 |
|
// add www if present in option URL |
| 193 |
|
$url[ 'host' ] = $option_url[ 'host' ]; |
| 194 |
|
} |
| 195 |
|
|
| 196 |
|
$normalized_url = "{$url['scheme']}://{$url['host']}"; |
| 197 |
|
if ( isset( $url['path'] ) ) { |