http -> https redirect 301/302

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
tfh
-


Joined: 03 May 2020
Posts: 112
Location: Netherlands

PostPosted: Mon Dec 28, 2020 11:17 pm    Post subject: http -> https redirect 301/302 Reply with quote

I have used the following setting to serve only on https:




This gives a 302 (temporary) redirect. Is it possible to change this to a 301 (permanent) redirect?
_________________
https://www.arnauddeklerk.com
https://www.file-hunter.com
Back to top View user's profile Send private message Visit poster's website
tfh
-


Joined: 03 May 2020
Posts: 112
Location: Netherlands

PostPosted: Thu Jan 07, 2021 8:14 pm    Post subject: Reply with quote

In the meantime I have received an answer from support:

You should probably remove the / from the 'Exclusively Serve on HTTPS'
and replace it with this URL rewriting rule:

=> Add the following URL rewriting rule to your host:

Type: Global
Virtual Path regular expression: ^/(.*)$

Conditions:
Condition 1:
Variable: Other Value -> HTTPS
Operator: Is not equal to
Value: On
Case sensitive:
Unchecked

If this rule matches: Perform an external redirection

Redirect to: https://YOURSITE/$1

Append Query String: checked

Escape Redirection Location: checked

Status Code: 301
_________________
https://www.arnauddeklerk.com
https://www.file-hunter.com
Back to top View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group