Announcement

Collapse
No announcement yet.

confuse in using 301 redirect on .httaccess file

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • confuse in using 301 redirect on .httaccess file

    Hi, My current website url is: www.example.com and I will release a completely new website that will use a SSL Certificate and because its a full new website all the urls will be new and different from the old website. For your information, I'm using Hostforlife.eu hosting service. Their support told me to use the following lines on my .htaccess file:
    Code:
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
    But when researching for this on google, I have found many websites telling that we should always use a 301 redirect and to do that the .htaccess file should be:
    Code:
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
    So in order to resume, its the same domain, but now with a SSL Certificate and a full new website. In this case do I need to use the 301 redirect on my .htaccess file?
    Thanks!

  • #2
    301 redirect is a permanent redirect which passes between 90-99% of link juice (ranking power) to the redirected page. 301 refers to the HTTP status code for this type of redirect. In most instances, the 301 redirect is the best method for implementing redirects on a website.

    Comment

    Working...
    X