Problem using smtp mail server after nameserver changes

netlify site name: https://ankhuo-netlify.netlify.app
custom domain: ankh.gen.tr

i have another host with ankh.gen.tr domain. there is a smtp mail service in that host and a forum page. after changing my nameservers ankh.gen.tr redirect me to my netlify app but i cant use the smtp mail service and cant reach the forum with ankh.gen.tr/forum. what should i do ?

You can easily get the SMTP back, but you probably won’t be able to get the forum as well as the Netlify website, but before I say for sure, kindly confirm the following:

  1. You have your domain ankh.gen.tr purchased elsewhere and already pointing to a website.
  2. You wish to point ankh.gen.tr to https://ankhuo-netlify.netlify.app/.
  3. You wish to keep the SMTP provided by the host in point 1.
  4. You wish to serve a forum at ankh.gen.tr/forum/ (also hosted on the other host).

If I have got it all correct, the setup you’re looking for is not possible. Yes, I said you can get your SMTP working by reverting the nameservers to the original ones. Instead, you could point ankh.gen.tr to https://ankhuo-netlify.netlify.app/ using A + CNAME records as mentioned here: Configure external DNS for a custom domain | Netlify Docs. However, once you do that, your ankh.gen.tr/forum/ won’t work! If you wish to keep the forum running, you can’t point ankh.gen.tr to https://ankhuo-netlify.netlify.app/. You would need to create a subdomain for either of the two.

Couldn’t he have ankh.gen.tr/forum served on another host, and just point to it with a 200 redirect?

Yes, but the domain of that forum would change, right?

IDK. I should do a test, I guess.

The documentation here:

says in part

When you assign an HTTP status code of 200 to a redirect rule, it becomes a rewrite . This means that the URL in the visitor’s address bar remains the same, while Netlify’s servers fetch the new location behind the scenes.

I just tried it and the URL stays the same in the address bar of the browser, but any assets that do not have full paths do not load.

@gregraven, when I said the URL will change, I meant the forum will have to be hosted on a different URL, that is, say for example, forum.abc.com. Only then it’s possible for abc.com/forum/ to be redirected to abc.forum.com. It’s not possible to have the same domain pointing to the Netlify website as well as the forum.