I've this domain, created only for testing purposes, "ismyservice.net" I created a website for a demo client, setup with 'auto www' This has created /var/www/clients/client1/web2 In subfolder web/ there is the index.html. This is working for "ismyservice.net", and also with "www" before. Now I see I've already this folder /var/www/clients/client1/web2/web/stats. So I created an index.html with "<h1>stats</h1>" inside it. I create a subdomain - host c1w2 - domain ismyservice.net - redirect type: R, L (But I've not understand the differences....) - redirect path: /stats/ I've a dns A entry for c1w2 pointing to same ip of ismyservice.net I save, and wait the canonical minute When I load the page c1w2.ismyservice.net, I got a first reply with a 302 redirecting browser to http://c1w2.ismyservice.net/stats/ Now the browser got a 302 with redirection to "http://c1w2.ismyservice.net/stats/error/401.html" ... 401 redirects "n times" to 401 ... and browser then stop warning me about infinite loop. What's the error? Must I creat a .htaccess file inside some folder, or there is something I missed to do in ispconfig ?
You must not use redirect type R(,L) in this case. This is a 302 redirect to folder "stats" on each call to this subdomain! Use "no flag".
I've done some testing I've created 'c1w5' as CNAME of my domain.tld. [with final dot] I've created a subdomain c1w5 pointing to /prova/ subfolder (it's relative to /var/www/clients/client1/web2/web/) I got what I want both with "No Flag", and with "L" only flag - the content of /var/www/clients/client1/web2/web/prova/index.php - the url is NOT modified - no 30x http codes So... Is it better to use or not to use the L flag ?