Skip to content

Instantly share code, notes, and snippets.

@allmarkedup
Created September 15, 2010 12:06
Show Gist options
  • Select an option

  • Save allmarkedup/580635 to your computer and use it in GitHub Desktop.

Select an option

Save allmarkedup/580635 to your computer and use it in GitHub Desktop.
RewriteCond %{HTTP_HOST} ^[www\.]?domain\.com
RewriteCond %{REQUEST_URI} !/holdingpage.html$
RewriteRule ^(.*)$ /holdingpage.html [L,R=307]
@allmarkedup

Copy link
Copy Markdown
Author

I always seem to forget how to do this... it will basically redirect all traffic from the main domain to a holding page, but you will still be able to access the site via another domain parked on top of the main domain. Useful for development or maintenance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment