XF 2.2 Domain name change

Nicolas FR

Well-known member
Hello,

I am seriously considering changing my domain name, what steps should be taken for a smooth transition?
I'm not worried about SEO because the current domain name is new, less than 2 months. I will use a rewrite rule RewriteRule ^community/(.*)?$ /$1 [R=301,L]

Just technically I have to transfer the XF folders to the htdocs of the new domain name, right? (i've read this page : https://xenforo.com/community/threads/frequently-asked-questions.5183/#post-180455 point 6).

Regarding the database can I use the same if the 2 domain names are on the same hosting? the config.php file would not have to be changed. Is it possible ??

Thanks ! :)
 
Solution
Yes, you can use the same database - it's not tied to the domain.
You can also use the same config.php file if the DB and user are not changing.
Yes, you can use the same database - it's not tied to the domain.
You can also use the same config.php file if the DB and user are not changing.
 
Solution
For a complete redirection, which rewrite code i have to use ?
Domaine name origin : aaa.com
Domaine name destination: bbb.com

Redirect permanent https://aaa.com https://bbb.com is correct ?

Do i have to set an other redirection code to redirect each links of my old forum ? Like threads links, etc...
How can i set this ?
Code:
RewriteEngine on
RewriteCond %{REQUEST_URI} ^/$
RewriteRule (.*) /community/ [R=301]

Thanks ! :)
 
Top Bottom