<s>
The	O
HTTP	B-Protocol
response	O
status	O
code	O
301	B-Protocol
Moved	I-Protocol
Permanently	I-Protocol
is	O
used	O
for	O
permanent	O
redirecting	O
,	O
meaning	O
that	O
links	O
or	O
records	O
returning	O
this	O
response	O
should	O
be	O
updated	O
.	O
</s>
<s>
The	O
301	B-Protocol
redirect	I-Protocol
is	O
considered	O
a	O
best	O
practice	O
for	O
upgrading	O
users	O
from	O
HTTP	B-Protocol
to	O
HTTPS	B-Protocol
.	O
</s>
<s>
RFC	B-Protocol
2616	I-Protocol
states	O
that	O
:	O
</s>
<s>
To	O
fix	O
problems	O
with	O
non-existing	O
files	O
or	O
directories	O
using	O
a	O
distributed	O
.htaccess	B-Protocol
file	O
:	O
</s>
<s>
Here	O
is	O
an	O
example	O
using	O
a	O
.htaccess	B-Protocol
file	O
to	O
redirect	O
a	O
non-secure	O
URL	O
to	O
a	O
secure	O
address	O
without	O
the	O
leading	O
"	O
www	O
"	O
:	O
</s>
<s>
Here	O
is	O
an	O
example	O
using	O
a	O
PHP	B-Application
redirect	O
:	O
</s>
<s>
Here	O
is	O
one	O
way	O
to	O
redirect	O
using	O
Express.js	B-Language
:	O
</s>
<s>
Equivalently	O
simple	O
for	O
an	O
nginx	B-Operating_System
configuration	O
:	O
</s>
<s>
Both	O
Bing	B-Application
and	O
Google	B-Application
recommend	O
using	O
a	O
301	B-Protocol
redirect	I-Protocol
to	O
change	O
the	O
URL	O
of	O
a	O
page	O
as	O
it	O
is	O
shown	O
in	O
search	O
engine	O
results	O
,	O
providing	O
that	O
URL	O
will	O
permanently	O
change	O
and	O
is	O
not	O
due	O
to	O
be	O
changed	O
again	O
any	O
time	O
soon	O
.	O
</s>
