How do I connect my previous site to my new domain?

I made my site before connecting my coustom domain to infinityfree. There is the wordpress site in the htdocs folder right in my hosting however any new domain that I connect creates a new htdocs folder. If I move existing wordpress files from the htdocs in the hosting to the new domain folder it doesn’t work. There’s a error 500 because the PHP crashes. I can’t reconnect to my wordpress, I wonder if I lost the site. Is there a way to connect a new domain to the already existing htdocs folder? Thanks for the help.

If you want help, please fill out the template. What is your URL?

3 Likes

The url is: fcevision.ro

I get redirected to the subdomain your WordPress website was before. You’ll have to change your website URL on your database’s phpMyAdmin so it points to the new domain:

5 Likes

Thank you so much! Now it works as it should! Thank you!

2 Likes

Glad to help you out!

2 Likes

One question: How can I make the subpages work? Now they give the same erros 403

Did you mean 404? Here is WordPress’s default .htaccess file; you’ll have to create (or edit) it on your domain’s htdocs folder and add this content (or replace the content with this):

# BEGIN WordPress

RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

Like so, permalinks will work again.

2 Likes

I did that and it still gives the same error

They show up in wordpress but when I try editing one in elementor it doesn’t load.

Try this, as Elementor needs additional steps to work after you change the website URL:

3 Likes

I have followed the steps in the link and it gives the same error

I will try to check more online sources. Maybe you’ve got an idea.

1 Like

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