Hello,
the first, sorry for my english.
I have a wordpress multisite installed in a subdomain
news.mydomain.com
I have content on the following websites:
http://www.mydomain.com
http://www.mydomain.es
http://www.mydomain.fr
http://www.mydomain.de
I have followed all the steps in this topic to get:
http://www.mydomain.com/news/
http://www.mydomain.es/noticias/
http://www.mydomain.fr/informations/
http://www.mydomain.de/info/
I have edit table wp_x_options:
siteurl: http://www.mydomain.com/news/
home: http://www.mydomain.com/news/
…
table wp_blogs:
domain: http://www.mydomain.com
path: /news/
table wp_domain_mapping:
domain: http://www.mydomain.com/news/
…
on my server there are more sites, so I’ve configured in the apache
AliasMach ./info(.*) news.mydomain.com$1
.htaccess file:
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]
wp-config file:
define('WP_DEBUG', false);
define('WP_ALLOW_MULTISITE', true);
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
define('DOMAIN_CURRENT_SITE', $_SERVER['HTTP_HOST']);
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);
/* ¡Eso es todo, deja de editar! Feliz blogging */
/** WordPress absolute path to the WordPress directory. */
if ( !defined('ABSPATH') )
define('ABSPATH', dirname(__FILE__) . '/');
/** Sets up WordPress vars and included files. */
define( 'SUNRISE', 'on' );
require_once(ABSPATH . 'wp-settings.php');
displays the wordpress installed on news.mydomain.com correctly,
but NOT the posts, pages, links, etc. and displays the index for each domain.
Example:
http://www.mydomain.com/news OK
http://www.mydomain.com/news/2013/07/31/hola-mundo KO (display http://www.mydomain.com)
CAN SOMEONE HELP??