Submitted by JEMEDIACORP on Wed, 02/21/2018 - 14:40 Pro Licensee
Hi,
It would be very nice if users could be given the option to have Virtualmin set up 301 (Moved Permanently) redirects instead of 302 (Found) redirects in two cases: when manually adding redirects via Server Configuration > Website Redirects, and when Virtualmin sets them up automatically after enabling SSL support and assigning a Let's Encrypt certificate.
According to the following article, 301 redirects are much better for SEO purposes than 302 redirects. Is there a way this option can be implemented in a future release of Virtualmin?
Here is the article in question: https://moz.com/learn/seo/redirection
Thanks!
Status:
Closed (fixed)
Comments
Submitted by just_me on Sun, 04/01/2018 - 11:59 Comment #1
i am also wondering if we can have an option which does the redirect from http to https when there will a https website config is created by selection of that option in virtualmin.
Best
Submitted by just_me on Sun, 04/01/2018 - 12:03 Comment #2
PS: if i want to create a letsencrypt cert for webmin, i would have to tell him to use /var/www/html for verification, when i have virtualmin installed. Should be a standard settin in that context. But just running cloudmin and webmin, will keep me from using webroot for validation, there i would appreciate another standard setting for being able to use a cert for that domain too...
Submitted by JamieCameron on Sun, 04/01/2018 - 17:16 Comment #3
You can setup http to https redirects in Virtualmin, at Server Configuration -> Website Redirects.
Submitted by JEMEDIACORP on Sun, 04/01/2018 - 18:37 Pro Licensee Comment #4
Happy Easter! The problem with the current Website Redirects feature in the Server Configuration menu is that it sets up HTTP 302 redirects instead of the more SEO friendly HTTP 301. Is there any way to change this behavior?
Thanks!
Submitted by JamieCameron on Sun, 04/01/2018 - 22:01 Comment #5
Right now, no .. other than editing the Apache config file directly.
I'm skeptical that it makes a difference though.
Submitted by JEMEDIACORP on Sun, 04/01/2018 - 22:02 Pro Licensee Comment #6
Hi Jamie,
Could you perhaps elaborate more on the reasons for your skepticism? Also, did you have a chance to read the SEO article I linked to in my original post which discusses HTTP 301 redirects? Thanks!
Submitted by JamieCameron on Sun, 04/01/2018 - 23:56 Comment #7
Yes, I read that article - it seemed to be mostly speculation than any hard evidence.
Submitted by just_me on Mon, 04/02/2018 - 05:15 Comment #8
What about having a global variable for this in virtualmin? if you have more than a couple of websites this is tedious, having to set this one in each virtual server Best
Submitted by JamieCameron on Mon, 04/02/2018 - 21:15 Comment #9
That maybe possible ... I'll update this ticket with progress.
Submitted by JamieCameron on Sun, 04/08/2018 - 18:18 Comment #10
The next Virtualmin release will allow the HTTP status code to be customized when creating a redirect.
Submitted by IssueBot on Thu, 10/11/2018 - 20:07 Comment #11
Automatically closed - issue fixed for 2 weeks with no activity.