I want to redirect a domainname

Discussion in 'Site & Server Administration' started by Javi Uffhofen, Mar 10, 2011.

  1. #1
    Hi,

    I have a domain with a name version in puny code. I want all visitors to be redirected to the ascii name version (this is the one that should allways appear at the url bar of the browser). I guess I have to do that using the .htacces file, but how?

    Thank you. Regards,

    Javi
     
    Javi Uffhofen, Mar 10, 2011 IP
  2. hostparlor

    hostparlor Peon

    Messages:
    521
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    if your using cPanel use the cPanel redirects option.
     
    hostparlor, Mar 12, 2011 IP
  3. Javi Uffhofen

    Javi Uffhofen Active Member

    Messages:
    169
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #3
    Hi,

    thanks for your answer. No, I´m not using cpanel.
     
    Javi Uffhofen, Mar 14, 2011 IP
  4. mergemedia

    mergemedia Peon

    Messages:
    55
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    to redirect ALL files on your domain use this in your
    .htaccess file if you are on a unix web server:

    redirectMatch 301 ^(.*)$ http://www.domain.com
    redirectMatch permanent ^(.*)$ http://www.domain.com

    You can also use one of these in your .htaccess file:

    redirect 301 /index.html http://www.domain.com/index.html
    redirect permanent /index.html http://www.domain.com/index.html
    redirectpermanent /index.html http://www.domain.com/index.html

    This will redirect "index.html" to another domain using a
    301-Moved permanently redirect.
     
    mergemedia, Mar 16, 2011 IP