SiteCozy

  • My account

Htaccess code for a WordPress subdomain multisite

2018-09-09

In htaccess, add the following code after all other directives:

RewriteEngine On
RewriteBase /

RewriteRule ^index\.php$ - [L] # add the 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]

Related Posts:

  • Htaccess code for a wordpress subfolder multisite
  • How to move a multisite wordpress install from subfolder to subdomain
  • Redirect all links to a 410 error to quickly de-index webpages
Download our Broken link checker freeware here Buy a license key for the Sitecozy broken link checker

Customer Login

Lost password?

Categories

  • Webmaster advice
  • SEO advice
  • Web hosting
  • SiteCozy link checker KB
  • WordPress theme & plugin reviews
  • All articles
Disclosure: We are a professional review site that receives compensation from the companies whose products we review. We test each product thoroughly and give high marks to only the very best. We are independently owned and the opinions expressed here are our own.

Copyright Sitecozy 2018