Redirecting to HTTPS on cPanel Servers
located in the main folder where your site is running (with a dot at the beginning) .just edit the htaccess file and add the following codes to the top of the page. page.
Note: Usually sites run in public_hml, but if you have an Addon Domain (Plugin Domain Name) in the root directory domainadresiniz.com you need to apply it in the folder belonging to your site, which is in a similar form.
If (with a dot at the beginning).if the htaccess file does not exist, you can create it with the same name
# Redirect HTTP to HTTPS Code - from eniyisunucum.com RewriteEngine Ten RewriteCond%{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] # Last: Redirect HTTP to HTTPS Code - from eniyisunucum.com