install network (using sub-dir) on a subdomain wordpress
-
The title may be confusing, here explains:
The normal version of WordPress is https://blog.highradio.tw/ , using rewrite rules from https://www.highradio.tw/wordpress/.
The url of multi-site version I want is https://blog.highradio.tw/user .It works just fine using normal version of wordpress.
After I open the multisite function and re-login, it continues redirect to “https://blog.highradio.tw/wp-login.php?redirect_to=https://blog.highradio.tw/wp-admin/&reauth=1”.
That is, I cannot access the wp-admin panel.The root htaccess:
Options +FollowSymLinks RewriteEngine On RewriteCond %{HTTP_HOST} ^blog\.highradio\.tw RewriteRule ^(.*)$ wordpress/$1 [L]
.htaccess in /wordpress/:
RewriteEngine On # BEGIN WordPress RewriteBase /wordpress/ RewriteRule ^index\.php$ - [L] # uploaded files RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [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] # END WordPress
added in wp-config.php:
define('WP_ALLOW_MULTISITE', true); define( 'MULTISITE', true ); define( 'SUBDOMAIN_INSTALL', false ); $base = '/wordpress/'; define( 'DOMAIN_CURRENT_SITE', 'blog.highradio.tw' ); define( 'PATH_CURRENT_SITE', '/wordpress/' ); define( 'SITE_ID_CURRENT_SITE', 1 ); define( 'BLOG_ID_CURRENT_SITE', 1 );
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘install network (using sub-dir) on a subdomain wordpress’ is closed to new replies.