WordPress.org

Ready to get started?Download WordPress

Forums

network on another url (23 posts)

  1. everest191
    Member
    Posted 1 month ago #

    hello!
    a firm had devloped my site and now I have it in my server (bluehost.com) and it works so long I can not install network, but I need the network. as soon as I put coden in wp-config that redirect to the server that the developer had used. how can you change the network is working and using my url?

  2. everest191
    Member
    Posted 1 month ago #

    Hi
    Maybe I should explain more clearly. I have tried with codex without result. it's been like that a person had made my site on a server (myclientdemo.com) and later transferred all the folders and files to mysite.com / temp (and he had installed wp ochså). Since I moved folders and files to and wp to www (root). and in the admin changed the url from mysite.com / temp to mysite.com.
    the problem is that now when I create network according to codex, as soon as I copies the code to the wp-config, mysite.com goes into myclientdemo.com!
    What can I do to be able to create networks that do not redirect to myclient.com?
    Thanks in advance

  3. What code are you putting in to your wp-config.php? It shouldn't be able to do that unless someone messed up moving it in the first place.

  4. everest191
    Member
    Posted 3 weeks ago #

    this one:

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

    and when I change myclientsdemo to mysite, Iget the message :"Error establishing a database connection"

  5. Yeah you forgot a line :)

    define('WP_ALLOW_MULTISITE', true);

    See https://codex.wordpress.org/Create_A_Network#Step_2:_Allow_Multisite :)

  6. everest191
    Member
    Posted 3 weeks ago #

    I had done, before those codes exact as codex

  7. You did not follow the directions on your SITE where it says to ADD those lines.

    /* Multisite */
    define( 'WP_ALLOW_MULTISITE', true );
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', false);
    define('DOMAIN_CURRENT_SITE', 'www.myclientsdemo.com');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);

    You ADD the new lines, not delete.

  8. everest191
    Member
    Posted 3 weeks ago #

    Hi
    Exact after that I add the first step, I get it in my admin/tools

  9. I'm sorry ... I don't know what that means. Are you saying that with the missing line added, the tools works?

    What I'm trying to tell you is your wp-config.php file is incomplete without that line.

  10. everest191
    Member
    Posted 2 weeks ago #

    no missing I add the

    define( 'WP_ALLOW_MULTISITE', true );
    define('MULTISITE', true);

    and then I got the

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

    in my admin

  11. Yes, the admin tell you to add more lines.

    To activate Multisite, you add this to wp-config:

    define( 'WP_ALLOW_MULTISITE', true );

    Then you go to the admin -> network setup page and you add (not replace, ADD) the following:

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

    Making the ENTIRE section look like this:

    define( 'WP_ALLOW_MULTISITE', true );
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', false);
    define('DOMAIN_CURRENT_SITE', 'www.myclientsdemo.com');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);

    Does your wp-config section for multisite look like that? Yes or no?

  12. everest191
    Member
    Posted 1 week ago #

    Hi
    thanks for the reply, the problem is that when I put the code in wp_config if I have subdomain is true, I get "http://www.borderlessnews.com/wp-signup.php?new=www.borderlessnews.com" in the address bar and diplsays: "This webpage has a redirect loop"
      and if it is false, I get error database stabilishing.
    I have been in the database and changed all myclientdemo.com to borderlessnews.com which is my site url. Unfortunately I can not find the person who has developed the site in its server (myclientdemo.com).
    and I have contacted my web hosting and they say that there is no problem with htaccess

    As I said before I have bp group and bp linketc. and the wild card that will allow me to have the subdomain

  13. Notice how the URL says http://www.borderlessnews.... ?

    Does your server or .htaccess enforce www in your domain?

  14. everest191
    Member
    Posted 1 week ago #

    Hi
    it is www

  15. everest191
    Member
    Posted 1 week ago #

    www without http

  16. Okay, so you need to EITHER change your server/htaccess to NOT force the www, or you need to edit WP to require it.

  17. everest191
    Member
    Posted 1 day ago #

    Hi I reinstall wp and here is my htaccess what must be change

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPres
  18. Please take the time to actually read what the directions, from WP, say when you activate multisite. It actually says what you should replace your .htaccess with.

    Read THAT, copy it, REPLACE.

  19. everest191
    Member
    Posted 1 day ago #

    tanks I have read. the problem is when I copy the code from admin/tools into the config I get error stabilishing database if the subdomai is false and when it is true I gethttp://www.mysite.com/wp-signup.php?new=www.mysite.com in adress bar and the message is this site has a redirect loop
    as you se in adress bar there is no http and only www
    thank you for repalying

  20. Okay. Then in your wp-confing.php file, chnage this:

    define('DOMAIN_CURRENT_SITE', 'www.myclientsdemo.com');

    to this:

    define('DOMAIN_CURRENT_SITE', 'myclientsdemo.com');

    See if that helps.

  21. everest191
    Member
    Posted 1 day ago #

    I have not any define ('domain...) I add the other one but it is the same problem

  22. I have not any define ('domain...) I add the other one but it is the same problem

    Then you, yet again, did not copy everything over as instructed.

    You have to copy the information provided from WP into your wp-config.php AND the .htaccess

    You keep not doing this, and that's why Multisite won't work for you. If this is too hard, you need to hire someone to manage your network, or not do this. Multisite is complicated, and it's harder than regular WordPress.

Reply

You must log in to post.

About this Topic

Tags