1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

New Domain name redirection

Discussion in 'XenForo Pre-Sales Questions' started by Cambion, Mar 16, 2013.

  1. Cambion

    Cambion Well-Known Member

    With my new licence i plan to use an entirely different domain name.....
    i know there are redirect scripts or options when convertign Ipboard to Xenforo using the same domain but is there still a way to convert old links to the new domain name.

    i.e. if my site's domain is apple.com
    and i change it to orange.com

    can i properly redirect all apple.com/whatever info goes after here
    to orange.com?
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    The change of domain can be enforced with a rewrite rule in your .htaccess file:

    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^newdomain\.com$
    RewriteRule ^(.*)$ http://newdomain.com/$1 [R=301,L]
    This will work in conjunction with the redirect scripts for the import.
  3. Cambion

    Cambion Well-Known Member

    where it says newdomain.com is simply where i'd replace it with my actual new domain name correct?

    just copy what you have above?
  4. You should replace it with your new domain. And place this on your old domain. So when one tries to reach your old web server, it bounces them to your new domain.
  5. Cambion

    Cambion Well-Known Member

    wait i am confused.

    if i am movign all my files to the new domain then where exactly would i put the .htcacces at on my old domain?
  6. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Put the redirect on the old domain. If both domains point to the same server then put it on that server.

Share This Page