Help forwarding domain 1 to domain 2

Hi. I have 2 namecheap domains, say they are adotcom and bdotcom. I want to redirect all traffic to a.com to b.com.

When I use redirect domain on namecheap, redirects fail to work if “https://” is append. I am not able to post “more than 2 links” so I am going to use PREFIX in lieu of h-t-t-p-s below (this is EXTREMELY silly by the way)

For example:

  • adotcom → PREFIX/bdotcom works
  • adotcom/abc → PREFIX/bdotcom/abc works
  • PREFIX/adotcom/ → PREFIX/bdotcom/ does NOT

After some research, I figured that I could host a separate domain on render.com for a.com and use redirect rules to redirect everything to b.com.

Currently, I have the following rules:

/* => PREFIX/bdotcom/*
/ => PREFIX/bdotcom/

Almost everything works, except I am not able to get PREFIX/adotcom or PREFIX/adotcom/ to redirect correctly.

How can I make this work?

Thanks!

Hi there,

I think trying to accomplish this at the DNS level could make the most sense. Have you been in touch with Namecheap’s support to see if they can help you accomplish this via DNS? I’d suggest starting there before attempting a workaround with Render’s static sites.

Regards,

Matt

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