# Reconnect domain after add the site to cloudflare

**URL:** <https://forum.infinityfree.com/t/reconnect-domain-after-add-the-site-to-cloudflare/99421>\
**Category:** Hosting Support\
**Created:** [September 26, 2024, 2:20pm UTC](https://forum.infinityfree.com/t/reconnect-domain-after-add-the-site-to-cloudflare/99421 "2024-09-26T14:20:35Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon55039860](https://forum.infinityfree.com/letter_avatar/anon55039860/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon55039860](https://forum.infinityfree.com/u/anon55039860)\
**Post date:** [September 26, 2024, 2:20pm UTC](https://forum.infinityfree.com/t/reconnect-domain-after-add-the-site-to-cloudflare/99421/1 "2024-09-26T14:20:35Z")

</div>

[### Website URL](https://lifeluxuria.com/)

### Error Message

# This site can’t be reached

### Other Information

I connected my domain with Infinity Free nameserver then yesterday connected it with Cloudflare so I can’t access it now and remember there was another method with records to add to the domain provider the problem is I can’t find this name record on the account or cpanel and the domain shows up on the account as connected …how to find it

---

<div class="post-metadata">

**Author:** ![KangJL](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/kangjl/32/12130_2.png) [@KangJL](https://forum.infinityfree.com/u/KangJL)\
**Post date:** [September 26, 2024, 2:31pm UTC](https://forum.infinityfree.com/t/reconnect-domain-after-add-the-site-to-cloudflare/99421/2 "2024-09-26T14:31:19Z")

</div>

Please read

> [@A Full Guide To Cloudflare](https://forum.infinityfree.com/t/a-full-guide-to-cloudflare/44451/1):
>
> Hello, I will show you how to easily set up Cloudflare, Edit Records, and Troubleshoot with images! PLEASE READ BEFORE STARTING!!! Cloudflare cannot be used on free subdomains from InfinityFree. You can use Cloudflare on Custom Domains ([yoursite.com](http://yoursite.com)) and with Custom Sub-Domains ([subdomain.yoursite.com](http://subdomain.yoursite.com)). A video tutorial can be found at the end of this guide, should you get stuck. You must connect your domain to your InfinityFree account first. [Read more here](https://forum.infinityfree.com/t/how-to-add-your-own-domain-to-your-account/49227). Set-Up Cloudflare Go to [Dash…](http://Dash.Cloudflare.com)

---

<div class="post-metadata">

**Author:** ![anon55039860](https://forum.infinityfree.com/letter_avatar/anon55039860/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon55039860](https://forum.infinityfree.com/u/anon55039860)\
**Post date:** [September 26, 2024, 2:34pm UTC](https://forum.infinityfree.com/t/reconnect-domain-after-add-the-site-to-cloudflare/99421/3 "2024-09-26T14:34:45Z")

</div>

I know this guide and I have read it this is not my problem I successfully connected Cloudflare and know how to add records on it the problem is I can’t find records for connecting the domain again on Infintyfree…i can’t understand the server or domain problem the guide said that steps from 6-8 might be add by Cloudflare and it shows me on Cloudflare records are set

---

<div class="post-metadata">

**Author:** ![KangJL](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/kangjl/32/12130_2.png) [@KangJL](https://forum.infinityfree.com/u/KangJL)\
**Post date:** [September 26, 2024, 2:42pm UTC](https://forum.infinityfree.com/t/reconnect-domain-after-add-the-site-to-cloudflare/99421/4 "2024-09-26T14:42:52Z")

</div>

Read the guide. Obviously you did not read.  
Otherwise you would know what to do…

This is the record you need

![image](https://forum-cdn.infinityfree.net/original/3X/9/8/982132e85ccab663ec0107d31df4229207fbfdb7.png)

Please show your CloudFlare dns entry

---

<div class="post-metadata">

**Author:** ![anon55039860](https://forum.infinityfree.com/letter_avatar/anon55039860/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon55039860](https://forum.infinityfree.com/u/anon55039860)\
**Post date:** [September 26, 2024, 3:36pm UTC](https://forum.infinityfree.com/t/reconnect-domain-after-add-the-site-to-cloudflare/99421/5 "2024-09-26T15:36:20Z")

</div>

I know you’re trying to help thank you for that but remember many are new to all of this and even the words is complex for us and we try to learn so be kind when answering someone I already say I read this and I skipped steps from 6-8 because it’s said it could happen automatically with cloudflare and I found on Cloudflare it’s checked all steps on the DNS tap

 ![image](https://forum-cdn.infinityfree.net/original/3X/b/f/bf4072e2f4f01c0a985da7bcb01e17cc1a08b879.png)

---

<div class="post-metadata">

**Author:** ![EdwardSkunk](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/edwardskunk/32/66982_2.png) [@EdwardSkunk](https://forum.infinityfree.com/u/EdwardSkunk)\
**Post date:** [September 26, 2024, 3:51pm UTC](https://forum.infinityfree.com/t/reconnect-domain-after-add-the-site-to-cloudflare/99421/6 "2024-09-26T15:51:32Z")

</div>

Although it can be automatically done by Cloudflare, that doesn’t mean it always is. And it wasn’t. Using a Dig tool has revealed that your domain has no A records, and trying to ping it goes nowhere.

 ![image](https://forum-cdn.infinityfree.net/original/3X/6/d/6d7a98bb56e7b72fb958270f63f8766503be2f3e.png)  
 ![image](https://forum-cdn.infinityfree.net/original/3X/a/2/a2d1a7d11c53835cb054e70353a41d109a5c121d.png)

> [@anon55039860](#):
>
> and I found on Cloudflare it’s checked all steps on the DNS tap

The fact that those are there implies that they haven’t been done. In your defense, the checkmark is a little deceptive, and I don’t blame you for the confusion.  
Please follow those steps from the Cloudflare guide you skipped before. That alone will allow your domain to point to your site successfully.

---

<div class="post-metadata">

**Author:** ![anon55039860](https://forum.infinityfree.com/letter_avatar/anon55039860/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon55039860](https://forum.infinityfree.com/u/anon55039860)\
**Post date:** [September 26, 2024, 4:23pm UTC](https://forum.infinityfree.com/t/reconnect-domain-after-add-the-site-to-cloudflare/99421/7 "2024-09-26T16:23:14Z")

</div>

ok I will thank you for that…how do you know those stuff where I can learn this for the future because all those things are hard to understand …i read a while on Cloudflare to know how to use it but couldn’t understand a lot of things

---

<div class="post-metadata">

**Author:** ![anon55039860](https://forum.infinityfree.com/letter_avatar/anon55039860/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon55039860](https://forum.infinityfree.com/u/anon55039860)\
**Post date:** [September 26, 2024, 4:54pm UTC](https://forum.infinityfree.com/t/reconnect-domain-after-add-the-site-to-cloudflare/99421/8 "2024-09-26T16:54:44Z")

</div>

i did it. it shows the website now thank you but all images are broken and the https is there, so should I follow the setup steps of the SSL on Cloudflare to not have a problem in the future or not it’s already there now

---

<div class="post-metadata">

**Author:** ![EdwardSkunk](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/edwardskunk/32/66982_2.png) [@EdwardSkunk](https://forum.infinityfree.com/u/EdwardSkunk)\
**Post date:** [September 26, 2024, 8:44pm UTC](https://forum.infinityfree.com/t/reconnect-domain-after-add-the-site-to-cloudflare/99421/9 "2024-09-26T20:44:15Z")

</div>

> [@anon55039860](#):
>
> i did it. it shows the website now thank you but all images are broken and the https is there

Ahh, a mixed content error. This happens when your site’s files are being served over regular HTTP while the site itself is using HTTPS. Thankfully I can tell by calls in your site’s source code that you’re using WordPress, which means it’s easy to fix. All you need to do is change your site’s URL in the WordPress config file from starting with “HTTP” to start with “HTTPS”. [This official guide](https://developer.wordpress.org/advanced-administration/upgrade/migrating/) can give you more detailed instructions.

> **[Migrating WordPress – Advanced Administration Handbook | Developer.WordPress.org](https://developer.wordpress.org/advanced-administration/upgrade/migrating/)**
>
> Changing The Site URL

> [@anon55039860](#):
>
> how do you know those stuff where I can learn this for the future because all those things are hard to understand

To be honest mostly trial and error from having used it for almost 10 years now. Cloudflare does have an official site that can help you get started though.

> **[Overview | Cloudflare Fundamentals docs](https://developers.cloudflare.com/fundamentals/)**
>
> Cloudflare Fundamentals is your landing page containing information about features and outcomes that span Cloudflare products.

> **[Getting started | Cloudflare Learning Paths](https://developers.cloudflare.com/learning-paths/get-started/)**
>
> Set up your application to benefit from Cloudflare's speed, security, and reliability.

There are also third-party tutorials you can find that might be easier to understand, but could also be potentially incorrect or out of date.

---

<div class="post-metadata">

**Author:** ![anon55039860](https://forum.infinityfree.com/letter_avatar/anon55039860/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon55039860](https://forum.infinityfree.com/u/anon55039860)\
**Post date:** [September 27, 2024, 6:25am UTC](https://forum.infinityfree.com/t/reconnect-domain-after-add-the-site-to-cloudflare/99421/10 "2024-09-27T06:25:51Z")

</div>

thank you so much for helping

---

<div class="post-metadata">

**Author:** ![anon55039860](https://forum.infinityfree.com/letter_avatar/anon55039860/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon55039860](https://forum.infinityfree.com/u/anon55039860)\
**Post date:** [September 27, 2024, 9:03am UTC](https://forum.infinityfree.com/t/reconnect-domain-after-add-the-site-to-cloudflare/99421/11 "2024-09-27T09:03:06Z")

</div>

i do as the article and couldn’t log into my site anymore got error 508 when I changed to https and save it  
 ![image](https://forum-cdn.infinityfree.net/original/3X/e/2/e2bb3093a63473fe4de716152ab92364871ba638.png)

I search and try methods on this article  
[https://developer.wordpress.org/advanced-administration/upgrade/migrating/](https://developer.wordpress.org/advanced-administration/upgrade/migrating/)

and edited the file of wp-config.php and saved it then Clear Browser and Cache and still have it… i ask chat gpt too and said to edit this file and .htaccess both didn’t work for 3 hour now didn’t change

---

<div class="post-metadata">

**Author:** ![EdwardSkunk](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/edwardskunk/32/66982_2.png) [@EdwardSkunk](https://forum.infinityfree.com/u/EdwardSkunk)\
**Post date:** [September 27, 2024, 2:28pm UTC](https://forum.infinityfree.com/t/reconnect-domain-after-add-the-site-to-cloudflare/99421/12 "2024-09-27T14:28:45Z")

</div>

A 508 error means it’s stuck in an infinite loop.

> [@anon55039860](#):
>
> i ask chat gpt too and said to edit this file and .htaccess

You didn’t need to edit your .htaccess, not when you’re using WordPress or Cloudflare anyway. Can you please show us what you changed so we can see what’s going on?  
And for future reference, please don’t blindly follow web hosting or coding advice from Chat-GPT, at least not without verifying that it’s correct from another source. It doesn’t know what it doesn’t know, and its information becomes outdated over time, especially with stuff that changes as frequently as website management.

---

<div class="post-metadata">

**Author:** ![anon55039860](https://forum.infinityfree.com/letter_avatar/anon55039860/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon55039860](https://forum.infinityfree.com/u/anon55039860)\
**Post date:** [September 27, 2024, 2:39pm UTC](https://forum.infinityfree.com/t/reconnect-domain-after-add-the-site-to-cloudflare/99421/13 "2024-09-27T14:39:34Z")

</div>

i was try to fix it but i keep the original code a side when things not solve it i add the old one this is what gpt write

```auto
# BEGIN WordPress
# The directives (lines) between "BEGIN WordPress" and "END WordPress" are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

# Redirect all HTTP requests to HTTPS, including Cloudflare traffic
<IfModule mod_rewrite.c>
RewriteEngine On

# Check if the request is forwarded from Cloudflare as HTTPS
RewriteCond %{HTTP:CF-Visitor} '{"scheme":"http"} [OR]

# Check if X-Forwarded-Proto is not HTTPS
RewriteCond %{HTTP:X-Forwarded-Proto} !https [OR]

# Check if HTTPS is off
RewriteCond %{HTTPS} off

# Redirect to HTTPS
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>

```

there was edited to php file i made from the article that didn’t work and GPT didn’t work they were the same anyway… to be honest i try so many things that i can’t remember to fix this problem

---

<div class="post-metadata">

**Author:** ![EdwardSkunk](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/edwardskunk/32/66982_2.png) [@EdwardSkunk](https://forum.infinityfree.com/u/EdwardSkunk)\
**Post date:** [September 27, 2024, 2:50pm UTC](https://forum.infinityfree.com/t/reconnect-domain-after-add-the-site-to-cloudflare/99421/14 "2024-09-27T14:50:48Z")

</div>

You don’t need to do any of that because you’re using Cloudflare. By default Cloudflare forces all of your site’s visitors to HTTPS without changing any files or settings on the webserver. In fact, Cloudflare themselves recommends against using .htaccess rules to do that while using their services, as doing so causes the exact issue you’ve been having.

 ![image](https://forum-cdn.infinityfree.net/original/3X/c/8/c81312d41bdecb8b74629862431973b3053f0f41.png)  
Your site was successfully making your traffic only use HTTPS before when it had a mixed content error. Can you please revert all of the changes you made to your .htaccess since that time? If you have other reasons for modifying the .htaccess you can address those separately, once your site is no longer stuck in a redirect loop.

---

<div class="post-metadata">

**Author:** ![anon55039860](https://forum.infinityfree.com/letter_avatar/anon55039860/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon55039860](https://forum.infinityfree.com/u/anon55039860)\
**Post date:** [September 27, 2024, 2:59pm UTC](https://forum.infinityfree.com/t/reconnect-domain-after-add-the-site-to-cloudflare/99421/15 "2024-09-27T14:59:53Z")

</div>

but i do those changes as i get the error of 508 when I change the HTTP to HTTPS on WordPress because I couldn’t get to site …everything know as the beginning with no edited from me except the wp-config.php I add the code on the Wordpress article I share

> [@anon55039860](#):
>
> I search and try methods in this article  
> [https://developer.wordpress.org/advanced-administration/upgrade/migrating/](https://developer.wordpress.org/advanced-administration/upgrade/migrating/)

now what to do …do I need to delete the site and set everything again from the begging

---

<div class="post-metadata">

**Author:** ![EdwardSkunk](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/edwardskunk/32/66982_2.png) [@EdwardSkunk](https://forum.infinityfree.com/u/EdwardSkunk)\
**Post date:** [September 27, 2024, 3:12pm UTC](https://forum.infinityfree.com/t/reconnect-domain-after-add-the-site-to-cloudflare/99421/16 "2024-09-27T15:12:08Z")

</div>

Can you please show us your wp-config.php file?

---

<div class="post-metadata">

**Author:** ![anon55039860](https://forum.infinityfree.com/letter_avatar/anon55039860/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon55039860](https://forum.infinityfree.com/u/anon55039860)\
**Post date:** [September 27, 2024, 3:27pm UTC](https://forum.infinityfree.com/t/reconnect-domain-after-add-the-site-to-cloudflare/99421/17 "2024-09-27T15:27:28Z")

</div>

this is the code i add to it  
"define(‘WP\_HOME’,‘[https://lifeluxuria.com](https://lifeluxuria.com)’);  
define(‘WP\_SITEURL’,‘[https://lifeluxuria.com](https://lifeluxuria.com)’);

before this line \* That’s all, stop editing! Happy publishing. \*/

---

<div class="post-metadata">

**Author:** ![EdwardSkunk](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/edwardskunk/32/66982_2.png) [@EdwardSkunk](https://forum.infinityfree.com/u/EdwardSkunk)\
**Post date:** [September 27, 2024, 4:43pm UTC](https://forum.infinityfree.com/t/reconnect-domain-after-add-the-site-to-cloudflare/99421/18 "2024-09-27T16:43:01Z")

</div>

Try removing those lines and then editing the URL of your site in the general settings page of the WordPress admin area. It’s the first method the article describes. If that one is successful, you don’t need to do both.  
Also for future reference, you’ll want to take regular backups of your site (the site’s files and perhaps more importantly with WordPress, the database) so that you can easily and reliably reverse changes. See the official knowledge base article on backing up your website for more information.

> [@How to backup your website](https://forum.infinityfree.com/t/how-to-backup-your-website/49304):
>
> Good website administration requires making backups of your account regularly and storing them somewhere safe yourself. You also need to download backups in order to migrate website to other hosting accounts. InfinityFree does not create or store any backups of free hosting accounts. It’s your responsibility to regularly create backups, and to store them somewhere safely. Backup your website files The best way to backup your website files is by downloading them using a desktop FTP client. Op…

---

<div class="post-metadata">

**Author:** ![anon55039860](https://forum.infinityfree.com/letter_avatar/anon55039860/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon55039860](https://forum.infinityfree.com/u/anon55039860)\
**Post date:** [September 28, 2024, 8:33am UTC](https://forum.infinityfree.com/t/reconnect-domain-after-add-the-site-to-cloudflare/99421/19 "2024-09-28T08:33:22Z")

</div>

i can’t access the WordPress dashboard this problem happened in the first place because I edited the URL of your site in the general settings page of the WordPress admin area then it logged me out and gave me this error and all of that tries because I try to get to the site or dashboard …i don’t know if this happens because it was connected with Cloudflare and I shouldn’t edit the URL of your site in the general settings page of the WordPress admin area in the first place or what I search on the internet and couldn’t find a solution i think I will set up again …thank you for helping i take a lot from your time thank you again

---

<div class="post-metadata">

**Author:** ![anon55039860](https://forum.infinityfree.com/letter_avatar/anon55039860/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon55039860](https://forum.infinityfree.com/u/anon55039860)\
**Post date:** [September 28, 2024, 9:16am UTC](https://forum.infinityfree.com/t/reconnect-domain-after-add-the-site-to-cloudflare/99421/20 "2024-09-28T09:16:24Z")

</div>

I fixed and I will leave the steps for anyone in the future the wrong thing that caused all that was changing the HTTP to HTTPS in the WordPress dashboard setting even after deleting and reinstalling the WordPress the make the same change it causes the same problem you will not get enter your site even from the WordPress management in the panel…

what I do 1- pause the Cloudflare from the Cloudflare account then log into the WordPress  
2- remove all the HTTPS and leave it HTTP Cloudflare will redirect to HTTPS anyway  
3- enable Cloudflare again and leave it for a while then test again if I still can log in to my site and I can… another thing I discovered when I realized it’s from Cloudflare check SSL on Cloudflare option if it’s flexible it will cause problems changed to full.

the bad I lose everything and I will start from scratch again…i hope no one faces this again

[Next page](https://forum.infinityfree.com/t/reconnect-domain-after-add-the-site-to-cloudflare/99421.md?page=2)
