Profile
Achievement
    
                torkil's Recent SnippetsTagged htaccess
- All /
 
 « Prev 1 Next »
Forward users from your alias domains to your main domain automatically. Nice to have if your site has got one or more aliases. Notice that all the domain aliases have [NC,OR] at the end of the line, while the last alias and_so_on.com just has [NC]....
        
        
        
            6 
        
        
            1632 
        
                    posted 17 years ago by torkil
            Using mod_rewrite in Apache to rewrite urls and force removal of www in urls. Good for letting search engine spiders in the right door...
Insert the code in your .htaccess-file in your website's root folder.
        
        
        
            3 
        
        
            1789 
        
                    posted 17 years ago by torkil
            Using mod_rewrite in Apache to rewrite urls and force users to use www in urls. Good for letting search engine spiders in the right door...
Insert the code in your .htaccess-file in your website's root folder.
        
        
        
            5 
        
        
            1839 
        
                    posted 17 years ago by torkil