Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nguyenvanduocit/5752948 to your computer and use it in GitHub Desktop.
Save nguyenvanduocit/5752948 to your computer and use it in GitHub Desktop.
Multiple addon domains, one htaccess file
RewriteCond %{HTTP_HOST} ^www\.addon1\.com$ [NC]
RewriteCond %{REQUEST_URI} !^/show.php
RewriteRule ^(.*)$ /show.php?domain=addon1.com&$1
RewriteCond %{HTTP_HOST} ^www\.addon2\.com$ [NC]
RewriteCond %{REQUEST_URI} !^/show.php
RewriteRule ^(.*)$ /show.php?domain=addon2.com&$1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment