Forwarding A Domain Issue...

Discussion in 'HTML & Website Design' started by timallard, Mar 4, 2007.

  1. #1
    Hey Everyone,

    I should know this...but heres the scenario.

    Ok i have 1 domain, and i have some hosting in a remote location. I forwarded the domain to a subfolder on the domain e.g.

    www.domain.com => www.otherdomain.com/subfolder/subfolder

    when i type in domain.com it forwards. but when i add www.domain.com i get, this domain was recently purchased, but doesnt forward.

    i believe its an .htaccess issue but im really not that great with the syntax of an htaccess file.

    The correct term is url canonicalization i believe.

    thanks for the help!
    -tim
     
    timallard, Mar 4, 2007 IP
  2. timallard

    timallard Well-Known Member

    Messages:
    1,634
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    158
    #2
    i found this: but i dont know if its working...

    Options +FollowSymlinks RewriteEngine on RewriteCond %{HTTP_HOST} !^www\.example\.com RewriteRule ^(.*)$ http://www.example.com/$1 [R=permanent,L]

    that example is for a something.something.com i dont want that.... >.<
     
    timallard, Mar 4, 2007 IP