---
title: "Force HTTPS in Zenphoto"
description: "Better secure your Zenphoto image galleries with a free or paid SSL certificate on your domain. Then, follow our steps below to learn how to Force HTTPS and remove the redirect for troubleshooting...."
url: https://www.inmotionhosting.com/support/website/force-https-in-zenphoto/
date: 2019-12-13
modified: 2022-11-30
author: "InMotion Hosting Contributor"
categories: ["Website"]
type: post
lang: en
---

# Force HTTPS in Zenphoto

Better secure your Zenphoto image galleries with a [free or paid ](https://www.inmotionhosting.com/support/website/ssl/auto-ssl-guide/#free-vs-paid)[SSL](https://www.inmotionhosting.com/support/website/ssl/auto-ssl-guide/#free-vs-paid)[ certificate](https://www.inmotionhosting.com/support/website/ssl/auto-ssl-guide/#free-vs-paid) on your domain. Then, follow our steps below to learn how to [Force ](https://#https)[HTTPS](https://#https) and [remove the redirect](https://#remove) for troubleshooting.

Get root access and more control over security with our [managed VPS host](https://www.inmotionhosting.com/vps-hosting) plans.

## Force HTTPS

1. [Login to Zenphoto](https://www.inmotionhosting.com/support/website/install-zenphoto-plugin/).
2. Hover over *Options* and click **Security**.
3. Click the *Server protocol* drop-down and select **https**.
4. Click **Apply** at the top.

## Remove Redirect

If your SSL expires, you should install a new SSL immediately. If you need to access your admin dashboard in the meantime, you’ll need to edit your Zenphoto configuration file to access admin pages.

1. Log into [SSH](https://www.inmotionhosting.com/support/server/ssh/do-you-provide-ssh-access/), [FTP](https://www.inmotionhosting.com/support/website/ftp/getting-started-guide/), or [cPanel File Manager](https://www.inmotionhosting.com/support/edu/cpanel/access-cpanel-via-whm/).
2. [Navigate to your Zenphoto root directory](https://www.inmotionhosting.com/support/website/where-to-upload-files/).
3. Edit `zp-date/zenphoto.cfg.php`.
4. Find `$conf["server_protocol"] = "https"`.
5. Change `https` to `http`.
6. Save changes.
7. Login to Zenphoto and change the server protocol drop-down to **http**.

Further secure your image gallery with [security HTTP headers](https://www.inmotionhosting.com/support/website/zenphoto-referrer-policy-and-x-frame-options/). Still curious about security features on our managed VPS Hosting? Check out [24 ways to secure your InMotion Hosting VPS](https://www.inmotionhosting.com/support/product-guides/vps-hosting/ways-to-harden-your-vps-hosting/).
