/ Published in: Apache
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
RewriteEngine On
RewriteCond %{HTTP_HOST} !example\.nl$
RewriteCond %{HTTP_HOST} ^([^.]+\.)?example\.
RewriteRule ^ http://%1example.nl%{REQUEST_URI} [NC,L,R=301]
URL: http://stackoverflow.com/questions/5405644/htacces-rewrite-tld-without-changing-subdomain-or-dirs
Comments
 Subscribe to comments
                    Subscribe to comments
                
                