Redirecting a specific page (again)
-
Hi there,
I want to redirect a specific page using the PHP Browser Detection plugin, but I can’t get it to work. I have already read this thread (which is the exact same topic): https://www.ads-software.com/support/topic/where-to-paste-code-for-redirecting-a-specific-page
And I have copied the code from that post so that my piece of code looks like this:if (is_page(‘bliv-testbruger-idmaas’)) {
if(is_ie() && get_browser_version() <= 9) {
wp_redirect(‘https://www.anpdm.com/article/42435E4A7649445D4077484A5F4671/15579068/3153809’, 301);
exit;
}
}I have pasted the code above into functions.php using the Code Snippets plugin (https://www.ads-software.com/plugins/code-snippets/)
Can somebody please tell me what I am doing wrong?
By the way, I’m trying to redirect IE9 and lower from a page with the slug ‘bliv-testbruger-idmaas’ to another site (with a rather braindead URL). The site is made using a theme called Ronneby (https://themeforest.net/item/ronneby-highperformance-wordpress-theme/11776839)
- The topic ‘Redirecting a specific page (again)’ is closed to new replies.