# Custom Error Pages does not support HTTPS

**URL:** <https://forum.infinityfree.com/t/custom-error-pages-does-not-support-https/60154>\
**Category:** Hosting Support\
**Created:** [April 7, 2022, 1:19pm UTC](https://forum.infinityfree.com/t/custom-error-pages-does-not-support-https/60154 "2022-04-07T13:19:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Epafined](https://forum.infinityfree.com/letter_avatar/epafined/32/5_5575768a8748004e209b776fc1b2916d.png) [@Epafined](https://forum.infinityfree.com/u/Epafined)\
**Post date:** [April 7, 2022, 1:19pm UTC](https://forum.infinityfree.com/t/custom-error-pages-does-not-support-https/60154/1 "2022-04-07T13:19:14Z")

</div>

Curstom Error Pages configuration only support http://, not support https://.  
but mysite added SSL, like as [https://xxxx/error.html](https://xxxx/error.html) ,It can not be accessed by [http://xxxx/error.html](http://xxxx/error.html)

(picture see below:)

 ![image](https://forum-cdn.infinityfree.net/original/3X/4/4/447dc1f92b01c7bfa1e186917925a83b6a43a478.png)

---

<div class="post-metadata">

**Author:** ![KangJL](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/kangjl/32/12130_2.png) [@KangJL](https://forum.infinityfree.com/u/KangJL)\
**Post date:** [April 7, 2022, 1:34pm UTC](https://forum.infinityfree.com/t/custom-error-pages-does-not-support-https/60154/2 "2022-04-07T13:34:07Z")

</div>

Check this out

> [@How to force all traffic to HTTPS](https://forum.infinityfree.com/t/how-to-force-all-traffic-to-https/49322):
>
> After you’ve enabled SSL for your website, you’ll probably want to redirect all traffic on your website to the https version of your site. There are multiple ways to do that. Let’s compare some commonly used ways. Using script configuration Some scripts (including Wordpress) have a setting which allows you to set your website URL. By changing this URL from [http://example.com](http://example.com) to [https://example.com](https://example.com), the script will probably redirect visitors to the https version of your site. Even if your script…

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [April 7, 2022, 7:31pm UTC](https://forum.infinityfree.com/t/custom-error-pages-does-not-support-https/60154/3 "2022-04-07T19:31:37Z")

</div>

You can probably just enter it with `http://` instead of `https://`. Your HTTPS redirect should make sure people will see the HTTPS page.

Alternatively, you can set the error page by setting the ErrorDocument line by hand in your .htaccess file.

---

<div class="post-metadata">

**Author:** ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)\
**Post date:** [April 14, 2022, 7:31pm UTC](https://forum.infinityfree.com/t/custom-error-pages-does-not-support-https/60154/4 "2022-04-14T19:31:55Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
