How do you do a 301 redirect?

Discussion in 'Search Engine Optimization' started by gamefray, Nov 20, 2007.

  1. #1
    I want my domain to only contain domain.com and not www.domain.com

    How do I do a 301 redirect for all the www. pages?
     
    gamefray, Nov 20, 2007 IP
  2. taylorwilsdon

    taylorwilsdon Peon

    Messages:
    760
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You'll want to use HTaccess if you have apache as your server software.

    Thats probably going to be the only way that you can do it site-wide without individually tagging all the pages with a redirect code.
     
    taylorwilsdon, Nov 20, 2007 IP
  3. kentuckyslone

    kentuckyslone Notable Member

    Messages:
    4,371
    Likes Received:
    367
    Best Answers:
    0
    Trophy Points:
    205
    #3
    If you have cPanel you can click the redirects icon and set it up easily from there
     
    kentuckyslone, Nov 20, 2007 IP
  4. gamefray

    gamefray Peon

    Messages:
    460
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Unfortunately, I have neither cpanel or HTaccess.
     
    gamefray, Nov 20, 2007 IP
  5. kentuckyslone

    kentuckyslone Notable Member

    Messages:
    4,371
    Likes Received:
    367
    Best Answers:
    0
    Trophy Points:
    205
    #5
    how to you log into your account? What is meant by htaccess is a file that is in your root directory which is name .htaccess
     
    kentuckyslone, Nov 20, 2007 IP
  6. taylorwilsdon

    taylorwilsdon Peon

    Messages:
    760
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Htaccess isn't a program, its something that exists as a functionality within every apache webserver (and some others, I believe).
     
    taylorwilsdon, Nov 20, 2007 IP
  7. kentuckyslone

    kentuckyslone Notable Member

    Messages:
    4,371
    Likes Received:
    367
    Best Answers:
    0
    Trophy Points:
    205
    #7
    you are correct on that. Even if it isnt already there it is easy to create one.
     
    kentuckyslone, Nov 20, 2007 IP
    Smyrl likes this.