Posted By

dan_hoerr on 05/11/11


Tagged

htaccess tld


Versions (?)

htaccess redirect TLD


 / Published in: Apache
 

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

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

Report this snippet  

You need to login to post a comment.