when i ping https://dailymaverick.co.uk/section/declassified-uk/
i get the results of unknown host
, could the issue be host related maybe?
Moderator
Jan Dembowski
(@jdembowski)
Forum Moderator and Brute Squad
Side noteL @gustavostraube Can you please keep user support in these forums? I have archived your last reply.
@jdembowski Sure, no problem.
So, @skinnyninjah, as I said in my last reply, could you send me your current settings? It seems link rewriting is not working on dailymaverick.co.uk.
Also, ping
expects a hostname (such as dailymaverick.co.uk
) not a full URL. That’s why it didn’t work.
Moderator
Jan Dembowski
(@jdembowski)
Forum Moderator and Brute Squad
Thanks! I really appreciate that.
Hey @gustavostraube this is my settings currently https://imgur.com/FMCWYa7 but i see now its going through to the articles but its going to .co.za instead of .co.uk
I’m wondering if you have some cache plugin in place. That could be messing with URL rewriting.
Hey @gustavostraube seems to be working fine now… after i removed the base path on the settings, i had to clear my cache… so this snippet below is working fine
function force_section_redirect() {
if (MULTIPLE_DOMAIN_DOMAIN === 'dailymaverick.co.uk' && (is_home() || is_front_page())) {
wp_redirect(home_url('/section/declassified-uk/'));
exit;
}
}
add_action('init', 'force_section_redirect', 1);
Thanks a million for all your help