New Domain

Chojo

Active member
I changed my domain name and want to move my Xenforo board from the old to the new one, is this possible? If so, and feel gentle, can you link me to an easy guide? Both database are MySQL

BTW I already installed Xenforo on my new domain and I created a brand new style, I don't know if moving my old xenforo to my new one will erase my new style?

Thank You
 
First you need to tell google by using webmaster tool (transfer site)
then edit .htaccess in the old domain to redirect your guest to the new domain note this keep all url and your users would be redirected to the same content its very beneficial
Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} !oldexample.com$ [NC]
RewriteRule ^(.*)$ http://www.newexample.com/$1 [L,R=301]
I will try to verify the code when I get home
its always hurts your site traffic when transferring domain but the above options would reduce the risk and your visitor won't notice anything by it.
 
Assuming both domains are parked on the same web site, you can add the red code to XenForo's default .htaccess file:

Rich (BB code):
#	Mod_security can interfere with uploading of content such as attachments. If you
#	cannot attach files, remove the "#" from the lines below.
#<IfModule mod_security.c>
#	SecFilterEngine Off
#	SecFilterScanPOST Off
#</IfModule>

ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 500 default

<IfModule mod_rewrite.c>
	RewriteEngine On

	RewriteCond %{HTTP_HOST} !^newdomain\.com$
	RewriteRule ^(.*)$ http://newdomain.com/forum/$1 [R=301,L]

	#	If you are having problems with the rewrite rules, remove the "#" from the
	#	line that begins "RewriteBase" below. You will also have to change the path
	#	of the rewrite to reflect the path to your XenForo installation.
	#RewriteBase /xenforo

	#	This line may be needed to enable WebDAV editing with PHP as a CGI.
	#RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

	RewriteCond %{REQUEST_FILENAME} -f [OR]
	RewriteCond %{REQUEST_FILENAME} -l [OR]
	RewriteCond %{REQUEST_FILENAME} -d
	RewriteRule ^.*$ - [NC,L]
	RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
	RewriteRule ^.*$ index.php [NC,L]
</IfModule>
 
Top Bottom