admin管理员组文章数量:1287579
I'm working on a multisite network.
I intend to make it a subdomain based network but cant seem to make it work because of the redirects. The main multisite network resides under app.trainergoesonline
So subsequent sites should go under site1.app.trainergoesonline, site2.app.trainergoesonline and so on. So far any installation I've done, I havent been able to access them as they keep redirecting to the root domain "trainergoesonline"
Following are the lines i included in the wp-config.php
define( 'WP_ALLOW_MULTISITE', true );
define( 'MULTISITE', true );
define( 'SUBDOMAIN_INSTALL', true );
define( 'DOMAIN_CURRENT_SITE', 'app.trainergoesonline' );
define( 'PATH_CURRENT_SITE', '/' );
define( 'SITE_ID_CURRENT_SITE', 1 );
define( 'BLOG_ID_CURRENT_SITE', 1 );
And following are the .htaccess rules for wordpress [all boilerplate]
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
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've looked far and wide across the internet but unable to find any valid direction to solve this redirection issue.
A couple of sites i tried to create are test2.trainergoesonline test10.trainergoesonline They all get redirected to the root domain
I look at this community with great hope!
本文标签: multisiteSubsubdomain getting redirected to main domain
版权声明:本文标题:multisite - Sub-subdomain getting redirected to main domain 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741268980a2368945.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论