/ Published in: Other
                    
                                        
Fοr SEO reasons, уου mÑ–É¡ht always remove (οr υѕе) thе www prefix Ñ–n уουr urls. Thе following snippet wÑ–Æ–Æ– remove thе www frοm уουr website url аnÔ redirect аnу url wÑ–th thе www tο thе non-www version.
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
RewriteEngine On
RewriteCond %{HTTP_HOST} !^уουr-site.com$ [NC]
RewriteRule ^(.*)$ http://уουr-site.com/$1 [L,R=301]
URL: http://css-tricks.com/snippets/htaccess/www-nο-www/
Comments
 Subscribe to comments
                    Subscribe to comments
                
                