WordPress.org

Ready to get started?Download WordPress

Forums

get_option('home') (2 posts)

  1. mouzaia34
    Member
    Posted 6 years ago #

    Hello all,
    I wanted to have 3 domains sending to the same wordpress, the only way I suceeded, and I dont like it, is this:

    function get_option( $setting ) {
    global $wpdb;
    if ('home'==$setting) { return 'http://'.$_SERVER['HTTP_HOST']; }

    Is there a different possibility, without touching to the code ?

    Thanks.

  2. nicholas77
    Member
    Posted 5 years ago #

    in your .htaccess file, type this:
    redirect 301 / http://www.the-domain-where-i-want-to-redirect-to.com

    my website is: http://www.freesoftwareworkshop.com :)

Topic Closed

This topic has been closed to new replies.

About this Topic