Skip to content

Instantly share code, notes, and snippets.

@coulterpeterson
Created November 23, 2019 00:17
Show Gist options
  • Save coulterpeterson/6e26d6a54c747d4a276b79ca1c6430c8 to your computer and use it in GitHub Desktop.
Save coulterpeterson/6e26d6a54c747d4a276b79ca1c6430c8 to your computer and use it in GitHub Desktop.
#htaccess 301 redirects in a #wordpress multisite for a single subdomain
RewriteEngine On
RewriteBase /
# Test domain rewrite rules
RewriteCond %{HTTP_HOST} ^(www\.)?testdomain.ca [NC]
RewriteRule ^about-us/core-values$ partnership/ [R=301,NC,L]
RewriteCond %{HTTP_HOST} ^(www\.)?testdomain.ca [NC]
RewriteRule ^about-us/core-values/$ partnership/ [R=301,NC,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment