1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Wordpress network problem look another thread

Discussion in 'Content Management' started by Haki88, Apr 30, 2016.

  1. #1
    I want to make wp network so what i did:

    i installed wordpress on MAIN.COM, i put pretty url i mean in settings i checked http://MAIN.com/sample-post/

    I added in wp-config network TRUE, then i go to web admin of wordpress and i put inside network new domain test.MAIN.COM I also added before everything in cpanel subdomain test.MAIN.COM

    Then i got "error" in web admin of wordpress about that he cant find second dns and under that i see that it ask me to add some lines to wp-config and .htaccess which i added:

    in htaccess:

    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^wp-admin$ wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
    RewriteRule ^(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]

    # END WordPress

    in wp-config:

    define('WP_DEBUG', false); (i added this just to know where i paste it)

    /* Multisite */
    define( 'WP_ALLOW_MULTISITE', true );

    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', true);
    define('DOMAIN_CURRENT_SITE', 'MAIN.com');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);

    /* Thats it, Happy blogging. */

    and i got it, everything seems fine, i have second domain on wordpress network. I tried to install wordpress on test.MAIN.COM but everytime it said its already installed, i test it, i made post and i have same post on MAIN.COM and test.MAIN.COM

    I tried going to admin of test.MAIN.COM and every time it redirects me to admin of MAIN.COM

    I dont know what i did wrong.
    Also some extra info: When i was installing test.MAIN.COM i put SAME database name, user, password and prefix !

    Any help please?
     
    Haki88, Apr 30, 2016 IP
  2. Haki88

    Haki88 Member

    Messages:
    68
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    43
    #2
    Seems i needed to change prefix... stupid mistake
     
    Haki88, Apr 30, 2016 IP
  3. Peter Stavrou

    Peter Stavrou Greenhorn

    Messages:
    33
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    8
    #3
    There is no stupid mistake.... Just a learning curve ;)
     
    Peter Stavrou, May 4, 2016 IP