New Domain name redirection

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?
 
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.
 
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?
 
Back
Top Bottom