1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

.htaccess directive for redirecting www to non www?

Discussion in 'HTML, Graphics & Programming' started by richieboy, 5 Jun 2006.

  1. richieboy

    Wise Guy

    Joined: 29 Dec 2004

    Posts: 2,146

    Hi guys,

    The other day i came across a snippet of code that i can place into my .htaccess file to redirect any http://www.domain.com requests to http://domain.com. Today i have realised this would be pretty useful for cookies and the like, but cannot find the code anywhere!

    Does anyone know what it is i can use?

    :)
     
  2. richieboy

    Wise Guy

    Joined: 29 Dec 2004

    Posts: 2,146

    Never mind, i found it...