subdomain code for htaccess file? by | Dec 27, 2018 DWQA Questions › Category: Questions › subdomain code for htaccess file? 0 Vote Up Vote Down wpsaas_admin Staff asked 6 years ago Where is that? the video says it’s ‘below’ but it’s not. Trying to setup subdomain for multi site steph Staff replied 6 years ago Found it: https://premium.wpmudev.org/forums/topic/how-to-convert-a-wordpress-multisite-from-subdirectory-to-subdomain RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] # add a trailing slash to /wp-admin RewriteRule ^wp-admin$ wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ – [L] RewriteRule ^(wp-(content|admin|includes).*) $1 [L] RewriteRule ^(.*\.php)$ wp/$1 [L] RewriteRule . index.php [L] Please login or Register to submit your answer Username or Email Address Password Remember Me
Found it: https://premium.wpmudev.org/forums/topic/how-to-convert-a-wordpress-multisite-from-subdirectory-to-subdomain
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
# add a trailing slash to /wp-admin
RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ – [L]
RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
RewriteRule ^(.*\.php)$ wp/$1 [L]
RewriteRule . index.php [L]