301 redirect help!

Discussion in 'Site & Server Administration' started by Moose77, Jun 9, 2009.

  1. #1
    I'm a "newbie" and am hoping someone can help me understand how to create a 301 redirect. Here's my scenario... and I apologize in advance for not explaining this very well:

    I purchased my domain through GoDaddy (www.example.com) and built my store in Volusion. I updated my domain in GoDaddy with the Volusion DNS server names as part of the process. I have links pointing to http://example.com and want to forward that url to http://www.example.com. How do I do this?? Do I do it via GoDaddy or is there something I have to do in the code via Volusion??

    Any help would be appreciated!!! I have very little web development experience... so keeping it as "layman" as you can will be a huge help to me.

    Thanks!!!

    Moose77
     
    Moose77, Jun 9, 2009 IP
  2. vasyl

    vasyl Peon

    Messages:
    138
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Is it working under apache server? If yes, edit .htaccess file in the root of the web server to add redirect 301 / http://www.example.com to this file
     
    vasyl, Jun 9, 2009 IP
  3. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #3
    If your site is using Apache web server and mod_rewrite is enabled then you just need to add following code in your .htaccess:

    RewriteEngine on
    rewritecond %{http_host} ^yourdomain.com [nc]
    rewriterule ^(.*)$ http://www.yourdomain.com/$1 [r=301,nc]

    Replace yourdomain.com with your actual domain.

    Kailash
     
    kailash, Jun 12, 2009 IP