Redirect to https

Post about your customizations to share with others.

Moderators: Contributor, Developer

Post Reply
max-300
Posts: 1
Joined: Apr 27, 2016 4:13 am

Redirect to https

Post by max-300 » Apr 27, 2016 4:19 am

Hi,
I want to redirect any request to my Mantis BT (1.2.17) to a https request.
E.g:
http://ticket.domain.com
should be redirected to
https://ticket.domain.com

Is this possible with a configuration setting in the config_inc.php or do I have to change these settings somewhere else?

Thanks a lot
Markus

atrol
Site Admin
Posts: 7394
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: Redirect to https

Post by atrol » Apr 27, 2016 8:26 am

Redirection is possible by web server configuration
Just earch the web for "redirect http to https"
Please use Search before posting and read the Manual

rbngan
Posts: 3
Joined: Jan 31, 2018 10:56 pm

Re: Redirect to https

Post by rbngan » Jan 31, 2018 11:00 pm

What do you mean by "Redirection is possible byr web server configuration, Just earch the web for "redirect http to https"" Can you me a little more specific?

atrol
Site Admin
Posts: 7394
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: Redirect to https

Post by atrol » Feb 01, 2018 2:10 am

rbngan wrote:
Jan 31, 2018 11:00 pm
Can you me a little more specific?
I can, http://lmgtfy.com/?q=redirect+http+to+https
Please use Search before posting and read the Manual

RedSpider
Posts: 36
Joined: Jan 30, 2015 2:47 pm

Re: Redirect to https

Post by RedSpider » Mar 03, 2018 9:21 am

Just add the following to your .htaccess file

Code: Select all

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Post Reply