Return to Snippet

Revision: 45907
at May 11, 2011 00:16 by dan_hoerr


Initial Code
RewriteEngine On
RewriteCond %{HTTP_HOST} !example\.nl$
RewriteCond %{HTTP_HOST} ^([^.]+\.)?example\.
RewriteRule ^ http://%1example.nl%{REQUEST_URI} [NC,L,R=301]

Initial URL
http://stackoverflow.com/questions/5405644/htacces-rewrite-tld-without-changing-subdomain-or-dirs

Initial Description


Initial Title
htaccess redirect TLD

Initial Tags
htaccess

Initial Language
Apache