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

New Domain name redirection

Cambion

Well-known member
#1
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?
 

Jake Bunce

XenForo moderator
Staff member
#2
The change of domain can be enforced with a rewrite rule in your .htaccess file:

Code:
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.
 

Cambion

Well-known member
#3
The change of domain can be enforced with a rewrite rule in your .htaccess file:

Code:
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.
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.
 

Cambion

Well-known member
#5
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.
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?