Redirect from http root -> https specific url

condorit

Regular Member
Joined
Oct 21, 2018
Messages
390
Reaction score
96
Hi guys, I know this is an old topic, but I need your help. I bought a good domain that I would to redirect to a specific category of another authority blog.
My provider says this is the htaccess format to do it, can you tell me if it's ok?

RewriteEngine On
Rewritecond %{REQUEST_URI} !^/\.well-known/(.*)$
RewriteRule (.*) https://www.SITEB.ext/$1 [R=301,L]

Can't understand what it means... Is there a simplier way to do it?
Thank you
 
If the url is http://www.example.com/dir/file?arg=1

%{REQUEST_URI} is equal to /dir/file?arg=1

.* means match everything in %{REQUEST_URI}
$1 will contains matched string in %{REQUEST_URI}
 
Back
Top