• Resolved supersekali

    (@supersekali)


    Hello, i would like to redirect my multidomain.com to multidomain.com/pageA . Let say thereis a link in pageA to pageB , the problem is wont change to multidomain.com/pageB but multidomain.com/pageA/pageB . Any clue ? i want everything have the same structure with the origindomain.com , redirecting to pageA is only to activate the Affiliate link for a while. Thank you. Hope u can understood what i mean.

Viewing 1 replies (of 1 total)
  • Thread Starter supersekali

    (@supersekali)

    nevermind, solved already with this code

    function force_section_redirect() {
        if (MULTIPLE_DOMAIN_DOMAIN === 'domain.tld' && (is_home() || is_front_page())) {
            wp_redirect(home_url('/path/'));
            exit;
        }
    }
    
    add_action('template_redirect', 'force_section_redirect');

    DAMN, THIS PLUGIN IS GREAT! THANK YOU SO MUCH!!

    • This reply was modified 4 years, 7 months ago by supersekali.
Viewing 1 replies (of 1 total)
  • The topic ‘Redirect to page’ is closed to new replies.