Best Way To Do This (2 questions)

Discussion in 'Domain Names' started by enigma104, Oct 12, 2010.

  1. #1
    Ok Two Questions

    1. I want to redirect anyone who types in the non www version of my domain to the www version. It looks like my web designer did this already, i found a .htaccessfile that says this

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^domain.com
    RewriteRule (.*) http://www.domain.com/$1 [R=301,L]

    however this file is located in a folder called _db_backups

    Additionally it doesnt do the job. So any advice would be helpfull.

    also i purchase a SECOND domain, for use in print advertising ( its easy to remember) what is the best way for seo so that if someone types in that address it goes to DOMAIN 1? any way to do this legitimatly without having the domain name in the address bar change?
     
    enigma104, Oct 12, 2010 IP
  2. dennylyon

    dennylyon Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    for redirect, you have to place .htaccess file in root directory. you can do permanent redirect for redirecting the second domain to first domain.
     
    dennylyon, Oct 13, 2010 IP
  3. enigma104

    enigma104 Peon

    Messages:
    111
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    when i placed the htaccess file in the root. it caused a username and password screen to popup when trying to access my page

    as far as the permanent redirect for the second domain to the first...how is that done, do i need hosting for the second domain?
     
    enigma104, Oct 14, 2010 IP