Doesn't work with base domain
-
It works with https://www.example.com/asked_url -> https://www.example.com/new_url, but not with example.com/asked_url if you have set in the wordpress configuration https://www.example.com like your domain name.
I saw that the problem is in the row 215:
$userrequest = str_ireplace(get_option('home'),'',$this->get_address());
if you have
get_otion('home') = "www.example.com"
you never will match
example.com/asked_url
.I resolved changing in this way:
$u = parse_url($this->get_address()); $host = 'https://'.$u['host']; $userrequest = str_ireplace($host,'',$this->get_address());
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Doesn't work with base domain’ is closed to new replies.