Redirection Problem RewriteCond RewriteRule

Hello. I have a website with lastest [v2.0.0.beta3 +12] Discourse version on Digitalocean. I am trying to move that subdomain to


How can I redirect all URLs to new domain? I search a lot but I cant find a solution.

For example I found a code for Apache web server. How can I use that htaccess code as below:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^forum\.medikalbulut\.org$ [OR]
RewriteCond %{HTTP_HOST} ^www\.forum\.medikalbulut\.org$
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^(.*)$ "https\:\/\/medikalbulut\.org\/$1" [R=301,L]

I mean, when click these kind of all old subdomain I want to redirect to new domain automatically

Can you help? Thank you.

I solve the problem with Page Rules >