I can’t redirect my all website pages, in www
to non-www
and https
I use Laravel 11
I try this, but it’s just work for my home page:
RewriteCond %{HTTP:X-Forwarded-Proto} =http
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
New contributor
Mordad Khezerlou is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.