Page rule subdomain redirect not working

I would like to redirect to the page mysiteroot/maxdenim using the domain alias maxdenim

1 - This is my DNS setup

Root record type A: @ → correct host ip (working)
Type CNAME: www → correct host (working)

2 - This is my page rule setup

URL matche: https://maxdenim.mysite.com
Fowarding URL - 301 Permanent Redirect → https://mysiteroot/maxdenim

3 - It doesn’t work

mysite ’s server IP address could not be found.
DNS_PROBE_FINISHED_NXDOMAIN

What’s wrong?

What is your domain?
Are you able to resolve your site root?

Yes,

The root domain @ and www are working.
Now I would like to create a page rule to redirect an alias subdomain to a page

http-or-https://maxdenim.mydomain.com redirect to https://mydomain.com/maxdenim

How to configure this?

:wave: @developer27,

NXDOMAIN means there was a DNS lookup failure. It doesn’t appear from your notes/description that you have a DNS entry for maxdenim. Yopu’ll want to add that on the DNS tab.

-OG

And How should I configure the DNS entry?

CNAME - maxdenim -> IP?

My site is hosted on bitrix24 and I don’t have control to configure redirects on bitrix.

Hi @developer27,

For a page rule to work, you need to have a DNS record set to :orange: for the domain/subdomain that you want it to trigger for. You can create a record pointing to 192.0.2.1, a dummy IP address.

You can read more about this in our community tutorial.

Thanks,

It works with the dummy IP.

1 Like

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