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:
You have your domain ankh.gen.tr purchased elsewhere and already pointing to a website.
You wish to point ankh.gen.tr to https://ankhuo-netlify.netlify.app/.
You wish to keep the SMTP provided by the host in point 1.
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.
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.