• Dear Forum

    I’ve just used a new host server company to set up an install of WP that I now need to activate multisite on.

    Unfortunately, the host server’s control panel was in Polish language only, which meant I had to blindly follow instructions from support when doing the install.

    Through this I ended up with an install located in the directory:
    http://serwer1397424.home.pl/autoinstalator/wordpress/ which I was then then given further instructions to re-direct to my domain name poland-today.pl.

    Finally, to complete the install I then went into my wp panel (serwer1397424.home.pl/autoinstalator/wordpress/login.php) and mistakenly set both site url and wordpress url to http://poland-today.pl to finish the configuration.

    However, this didn’t work so I tried correcting it by hard coding the following into my wp-config.php:
    define(‘WP_HOME’,’http://poland-today.pl’);
    define(‘WP_SITEURL’,’http://serwer1397424.home.pl/autoinstalator/wordpress/’);

    This worked, my site came up online. But unlike all other installs of WP I’ve used the view pages addresses (poland-today.pl) were different to the login and dashboard addresses (http://serwer1397424.home.pl/autoinstalator/wordpress/) and when viewing pages while logged in I did not have an edit link or a dashboard menu navigation bar across top. It is as if the user and administrator get directed to different domain names.

    It is on this install that I’ve tried to activate multisite.

    WPs instructions when ‘setting up network’ were:

    Add the following to your wp-config.php file in /autoinstalator/wordpress/
    define(‘MULTISITE’, true);
    define(‘SUBDOMAIN_INSTALL’, false);
    define(‘DOMAIN_CURRENT_SITE’, ‘serwer1397424.home.pl’);
    define(‘PATH_CURRENT_SITE’, ‘/’);
    define(‘SITE_ID_CURRENT_SITE’, 1);
    define(‘BLOG_ID_CURRENT_SITE’, 1);

    Add the following to your .htaccess file in /
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ – [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) autoinstalator/wordpress/$2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ autoinstalator/wordpress/$2 [L]
    RewriteRule . index.php [L]

    However, this pulled up a 404 error on the login page (after FTPing into place the new files).

    Can anyone help please.

    Thanks

    Tim

Viewing 1 replies (of 1 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Well define('DOMAIN_CURRENT_SITE', 'serwer1397424.home.pl'); is a problem.

    That means your main site (i.e. your home domain) is serwer1397424.home.pl

    I would install a clean new install in the root folder via SSH or SFTP. Neither need you to use the control panel of the host (except perhaps to make a DB, and if so, install Chrome and use that, asking it to translate into English).

Viewing 1 replies (of 1 total)
  • The topic ‘Site url and wordpress url issue’ is closed to new replies.