Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

Force SSL usage

Is there any way/option [none I can see in admin] to force SSL usage even if a user browses to http:// (or any staff/managers using scp view)?

Comments

  • consumedsoul;20744 said:
    Is there any way/option [none I can see in admin] to force SSL usage even if a user browses to http:// (or any staff/managers using scp view)?
    Untested:

    Try and put the following in your .htaccess file
    Options +FollowSymlinks
    RewriteEngine on
    RewriteCond %{SERVER_PORT} =80
    RewriteRule ^(.*) https://%{SERVER_NAME}%{REQUEST_URI}
  • If your not running Apache you can google "IIS force ssl redirect" you will get a number of results for replicating this type of behavior for Microsoft IIS 5, 6, 7, etc. If you are running 7+ you might want to add URL Rewrite and web.config to the query.
  • scottro;20748 said:
    Untested:

    Try and put the following in your .htaccess file
    Options +FollowSymlinks
    RewriteEngine on
    RewriteCond %{SERVER_PORT} =80
    RewriteRule ^(.*) https://%{SERVER_NAME}%{REQUEST_URI}
    That worked perfectly, thanks!
  • Perfect this was just what I was after..
This discussion has been closed.