Trouble with rewrites

Hey there,

I’m having trouble creating a rewrite rule pointing my static site to my web service. I remember I had this working before without any trouble, so I’m just wondering if there have been recent changes to the infrastructure.

I vaguely remember the static site deploying upon saving a rewrite rule, but it currently isn’t doing that.

On a separate note: I’m also curious if rewrite rules apply to private services differently than public services.

Thanks for your help,
John

Just a quick update: It works to rewrite to public addresses (https://my-public-service.onrender.com) but not private (my-public-service:3000).

Hi John,

I vaguely remember the static site deploying upon saving a rewrite rule, but it currently isn’t doing that.

The static site doesn’t need be redeployed for a new rewrite rule to take effect.

It works to rewrite to public addresses (https://my-public-service.onrender.com) but not private (my-public-service:3000).

This is expected. Currently, rewrite rules only work with public addresses.

1 Like

Thanks Shantanu,

Is your documentation under version control? I’d love to submit a PR. I feel making the distinction between public and private services clearer would have spared some time spent finding the right solution.

Hi John,

Thanks for the offer! Our docs are not open source at the moment, but I’ve created a PR to documenting this information and it should be live soon.

2 Likes