Scientific Linux Forum.org



  Reply to this topicStart new topicStart Poll

> should i use 301 redirect or not?
MeghanLiz
 Posted: Jun 19 2015, 08:08 AM
Quote Post


SLF Newbie


Group: Members
Posts: 1
Member No.: 3471
Joined: 19-June 15









Hi,

My current website url is: http://www.example.com and I will release a completely new website that will use a SSL Certificate and because it’s a full new website all the url’s will be new and different from the “old” website. I'm using Hostforlife.eu hosting service, they 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, it’s 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
PM
^
tech4tall
 Posted: Nov 14 2015, 08:38 AM
Quote Post


SLF Newbie


Group: Members
Posts: 3
Member No.: 3566
Joined: 14-November 15









In terms of SEO, a 301 is always preferred coz the 301 redirect can pass the link juice from the original page to the new page. The other redirects are not designed with that.

If not considering SEO, both are ok as there is no effect on user end.

--------------------
Linux dev with Python & QT | Webmaster of a small site focus on Android
PM
^
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll