CommunityCategory: Questionssubdomain code for htaccess file?
steph asked 11 months ago

Where is that? the video says it’s ‘below’ but it’s not. Trying to setup subdomain for multi site

steph replied 11 months ago

Found it:

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]

1 Answers
wpsaas_admin Staff answered 9 months ago