Problem in connecting cloudflare to cpanel

I’m a on the way web page developer.
I want to redirect all traffic on my website to https, so I’ve decided to use cloudflare but I’m having problem in connecting cloudflare.

Cloudflare is asking me to change the name servers, but I’m not able to find such setting in cPanel. Please help me that how can I change my name servers from cPanel or I can do it with cName records.
Please try to reply quickly. I’ll be very thankful.

Please note that your domain ns can only be changed in your Domain Registrar,not in cpanel


You must change nameservers of your domain through your domain provider.
Edit: @anon77371365 please don’t confuse me with your transparent avatar. :expressionless:


Thanks for replying.
Can you pls help me further?
Infinity free knowledge base tells about tutorial on namesilo but I can’t spent any money as I’m only allowed to use free services. So can you pls tell me that how can I change my nameserver for free step by step and what is my domain registrar. I’ll be glad if you help me.

Namesilo is a domain registrar(offers tld for cheap price).

Now,who is your domain registrar(Where did you buy it?)

1 Like

You can get free domain from freenom…

I’m using free domain provided by iFastNet (as I think).
Well I only need it because I want to redirect all traffic through https://
So is there any way by which I can redirect all traffic to https:// without using cloudflare or any extensions from cPanel?
(I’ve already got a SSL certificate and my website works on https:// so I only need to redirect visitors.)

If you really hv a free domain (subdomain does not work) and valid SSL cert installed, add the following to ur .htaccess:-

#Redirect to https
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} =http [OR]
RewriteCond %{HTTP:X-Forwarded-Proto} =""
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
Header always set Content-Security-Policy "upgrade-insecure-requests;"

Hi there, from now on you can get free ssl for subdomains too.



Thanks for getting me that script.
But I’m again facing a problem. I can’t write .htaccess file as it is present in root directory. Please help me as I am also not able to change its permissions

It shd be in the htdocs directory…

1 Like

Thank you very much @KangJL and @anon19508339
Now its working fine. I don’t know how can I thank you.

Well I have one more question. Can I use any php mail service or SMTP for free?


I’ve seen Google firebase mail api, but it needs blaze plan.
Similiarly other libraries are also paid. Are there any other free libraries or api that can be used to send mails?

Sendgrid, Mailgun, Sparkpost, Amazon SES, Elastic Email, Postmark and SMTP2Go are a few of the many providers who offer email sending services. The market for Email Sending Providers (ESP) has many different brands.


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