good day, I'm trying as I mention in the title but I do not achieve it, what I want is to go from http either (with and without www) and link a - > link as you could through htaccess
this is what I have so far and it works but only without the www pdt: I also want to redirect index.php link
# reglas ocultar index
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]