Htaccess redirect problem!

two redirecting problems have been solved
but there are still two unsolved problems

first question
suppose a domain name is
http://xxx.ooo.com/
, but I have a https, but he will not add the
hypothesis himself when someone enters the http://xxx.ooo.com/. Can I add https://xxx.ooo.com/ and redirect it?

second question
enter https://ppp.com, but there is no https, so he will warn and stop. How to transfer to https://www.ppp.com when entering https://ppp.com?

Mar.18,2021

I answered the first
if it is apache, and supports rewite, you can use hatcess

.
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{SERVER_NAME}/$1 [R,L]

if nginx, needs to change the configuration of the server

the second one needs to be configured through the server. I don't know if you are using apache,nginx?.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b377f2-2c08e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b377f2-2c08e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?