HostGator proxy/redirect for custom subdomain difficulties

Hi, I’m using HostGator to host my custom domain. I have a subdomain (let’s call it In the Obsidian Publish > Site options > Configure custom domain, I specify the custom url as (When I go to it displays the pages as expected).

But now I want to be able to access this page from my subdomain.

The official Obsidian docs use an example for a sub-url path (, but I want to go from the subdomain to my Obsidian publish instead.

In the .htaccess file for, I can’t figure out how to make it work. I’ve tried:

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ [P]


RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^$1

But they both don’t work. When I remove the Rewrite condition, I get a 500 error.

Thank you in advance for your help!

I don’t know anything about HostGator, but I recently did the same thing with Bluehost. Do you have SSL configured for your subdomain, or a wildcard certificate for your domain? That was the issue for me. In the end, I had to spin up an Nginx server with an SSL cert to act as a reverse proxy between Bluehost and Obsidian Publish.

I do have SSL configured for my subdomain already… I may look into using NGINX server anyways

Hi @kebonly
I have the same type of problems when following the instructions given for Apache server setup.
Did you get to the bottom of it?

Some proxies don’t support the remote connection or have big issues when you are trying to connect them with the VPN applications. I faced this issue with the post of EU and US proxies, but indonesian proxy servers are more stable for remote connection, so you can try to connect them with your remote VPN applications. Also, in some cases will be helpful if you restart your network router and choose the full compatibility with Windows XP while running the VPN application.