Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
301 Redirect von alter Domain auf eine neue Domain nach Domain-Umzug
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com [NC,OR]
RewriteCond %{HTTP_HOST} ^www.example.com [NC]
RewriteRule ^(.*)$ http://example.net/$1 [L,R=301,NC]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.