NginX / Debian 6.0 - Redirecting fails!
Trying to redirect http://domain.tld to http://domain.tld/gallery
ISPConfig setup:
Redirect type = permanent Redirect path = http://domain.tld/gallery/
Which generates these lines in the NginX vhost file:
if (http_host ~* "^domain.tld
") {
rewrite ^/(.+)$ http://domain.tld/gallery/$1 permanent;
}
if ($http_host ~* "^www.domain.tld$") {
rewrite ^/(.+)$ http://domain.tld/gallery/$1 permanent;
}
resulting URL is: