Redirect to https

Post about your customizations to share with others.

Moderators: Developer, Contributor

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

Redirect to https

Post by max-300 »

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: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Redirect to https

Post by atrol »

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: 01 Feb 2018, 03:56

Re: Redirect to https

Post by rbngan »

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: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Redirect to https

Post by atrol »

rbngan wrote: 01 Feb 2018, 04:00Can 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: 30 Jan 2015, 19:47

Re: Redirect to https

Post by RedSpider »

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