• The past cannot be changed. The future is yet in your power.

This site is owned and third-party cookies. If you continue with us we understand that you accept the use of cookies.

  • Welcome to AKA Off-Topic

    Talk about everything and anything in our Chat Rooms or Message Boards.
    Register Today!
  • Movie & TV

    Talk all about the latest TV Shows and Movies.
    Read More!
  • Depression? You're Not Alone

    No More Panic. Help and Support is just a Click Away.
    Click Here!
  • Music

    Where would life be without music. Join in with the music chat with other users.
    Sign Up Here!
  • Gaming

    Sign up to online multiplayer games. Discussions related to all aspects of gaming.
  • Sports

    Chat with other users that share interest in the same sports as you.
    Sign Up Today!
  • Make Life Beautiful, Get Help!!

    If you're scared. Don't be.'Cause the world really is beautiful. We can help!!
    Register Now!

Redirect non-www to www using .htaccess

Discussion in 'Website Development' started by Jax, Jun 20, 2018.

  1. Jax

    JaxJax is a Verified Member AKA Support Leader Support Leader

    Simple way to redirect non-www. to www. your site. Add this to your .htaccess file in the root folder of your website.

    RewriteEngine On
    # Redirect non-www to www
    RewriteCond %{HTTP_HOST} ^your site\.com [NC]
    RewriteRule (.*) http://www.your site.com/$1 [NC,QSA,L,R=301]
    Sasha and Racing Jordyn like this.