I need to transfer my domain (Not related to server down)

I have two domain names, one is established in infinityfree before, and the other is the domain name I want to use now

but addon domain document root it’s different, so i can’t use two domain names at the same time.

You should be able to use both domains. Did you want them to show the same thing (Parked Domain) or do you want them to show different things (Addon Domain).

Can you share an error message if one is given?
Thanks!

1 Like

You can easily copy everything from the old to the new

and then do this

and check if everything is working properly

in that way you have two separate (identical) versions
which is useful because then you use one for experimentation and the other for live

if you don’t want it then you need to add it as parked and not as an addon

3 Likes

i want them to show the same thing
and http://villagernews.rf.gd/ change to a temporary domain name

The former points to Document Root: /epiz_28813214/htdocs
The latter points to Document Root: /epiz_28813214/villagernews.cf

It’s a bit difficult to understand, and I don’t want my website to fail due to incorrect settings

To move your WP website to a new domain:

  1. Set up the new domain as a parked domain on the old site.

  2. Take a mannual backup (With FTP as well as a database backup) just in case something goes wrong

  3. Install the search and replace plugin and activate it. “better-search-replace”. (On the old domain)

  4. Using the plugin, set the site URL to the new domain.

  5. Load the new domain to test.

  6. Add this code to the bottom of the .htaccess file located inside of the /htdocs folder


<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteCond %{HTTP_HOST} ^olddomain.com$ [OR]
  RewriteCond %{HTTP_HOST} ^www.olddomain.com$
  RewriteRule (.*)$ http://www.newdomain.com/$1 [R=301,L]
</IfModule>

More info: https://wpscholar.com/blog/redirect-old-domain-to-new-domain-via-htaccess/

1 Like

Just move/copy all the files and folders from /epiz_28813214/htdocs to /epiz_28813214/villagernews.cf\htdocs.
As simple as that.

After that, if you made a copy and you don’t want the site to work in your old domain, you can safely remove the files and folder from /epiz_28813214/htdocs.

UPDATE: I didn’t notice that you had a Wordpress website and you didn’t mention it.
Just do what OxyDac mentioned in his post.

4 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.