Score:0

I just transfered domain name and now within my .htaccess file I have two codes which seem the same should one be deleted?

gb flag
RewriteEngine On
RewriteCond %{HTTP_HOST} lagiraudiere\.com [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.lagiraudiere.com/$1 [R,L]

and this one

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
us flag
This cannot be answered without information on the application setup.
kz flag
Why have you posted these two rules separately? Do you have other directives in the file (between these two rules)? Are these directives in the order you've stated? Are you hosting multiple domains? These two rules do not quite do the same thing (and the first rule looks incomplete). But only one rule will be doing anything. What exactly are you wanting to do? HTTP to HTTPS _and_ non-www to www canonical redirection? What does this have to do with having transferred your domain name?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.