multisite - Issue when transforming an existing site to multi-site with subfolders setup

I am willing to migrate a new website to the customer server to replace its old one.The old customer website used to be

I am willing to migrate a new website to the customer server to replace its old one. The old customer website used to be a single website (no network). I want to replace it with a network so as to be able to have one site in French, and another in English.

I would like it to use subfolders. So that :

idakt --> contains French version of the site,

idakt/en --> contains English version of the site.

I have followed the steps described here up to the update of the wp-config.php file with the following code :

define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
define('DOMAIN_CURRENT_SITE', 'mydomain');
define('PATH_CURRENT_SITE', '/wordpress/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);

Then I have put the following code in .htaccess file (according to the same guidelines)

# BEGIN WordPress
<IfModule mod_rewrite.c>
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).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
</IfModule>
# END WordPress

I managed to create a new site idakt/en in my network, but it does not appear in the drop down menu of my dashboard, see screenshot. Therefore I am afraid something is wrong and I go ahead many problems in my next steps to update the 2 sites in my network...

NB: I do not care if all the links are broken with the set-up of the network.

I thank you very much in advance for your help!

I am willing to migrate a new website to the customer server to replace its old one. The old customer website used to be a single website (no network). I want to replace it with a network so as to be able to have one site in French, and another in English.

I would like it to use subfolders. So that :

idakt --> contains French version of the site,

idakt/en --> contains English version of the site.

I have followed the steps described here up to the update of the wp-config.php file with the following code :

define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
define('DOMAIN_CURRENT_SITE', 'mydomain');
define('PATH_CURRENT_SITE', '/wordpress/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);

Then I have put the following code in .htaccess file (according to the same guidelines)

# BEGIN WordPress
<IfModule mod_rewrite.c>
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).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
</IfModule>
# END WordPress

I managed to create a new site idakt/en in my network, but it does not appear in the drop down menu of my dashboard, see screenshot. Therefore I am afraid something is wrong and I go ahead many problems in my next steps to update the 2 sites in my network...

NB: I do not care if all the links are broken with the set-up of the network.

I thank you very much in advance for your help!

Share Improve this question edited Sep 23, 2017 at 10:41 Johansson 15.4k11 gold badges43 silver badges79 bronze badges asked Sep 23, 2017 at 10:31 Julie Bivert-SillenJulie Bivert-Sillen 1
Add a comment  | 

2 Answers 2

Reset to default 0

You can only use sub-directories with multisite on a fresh WP installation. Wordpress Multisite doesn't allow sub-directories for domains on an old site. So your possible solution would be to setup WP-Multisite using sub-domains as:

  • en.idakt &
  • fr.idakt

You may go through this article to learn more about WP Multisite: The Ultimate Guide to WordPress Multisite

Add yourself as a user of that website. It will appear.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745476921a4629388.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信