Wie setze ich das in htaccess in nginx um?

I am already running it externally, I just wasnt sure how to go about that part. Thanks! I will give that a go now.

–
There is more to it isn’t there? Doesn’t a variable have to go at the end of the path based on the subdomain? It will not always be the same. Here is how I had it before.

RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.               [NC]
RewriteCond %{HTTP_HOST} \.domain\.com$        [NC]
RewriteRule ^(.*)$ http://domain.com/forum/t/%1$1 [L,NC,QSA]

Ah, I found this! htaccess to nginx converter
A htaccess to nginx converter, that is convenient, lol.

If I am already using proxypass and such, do I just put this in location along with all that? or does it have to go before or after it or something?

  if ($http_host !~ "^www\."){
    rewrite ^(.*)$ http://domain.com/forum/c/%1$1 redirect;
  }

Right now it looks like this

location /forum {
    proxy_pass http://unix:/var/discourse/shared/standalone/nginx.http.sock:;
    proxy_set_header Host $http_host;
    proxy_http_version 1.1;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto https;
}
fastcgi_read_timeout 60;

}

I just tested it out some more, it turns in to a loopy mess, lol.