Hi I have Problems with my redirects. First a test on a domain went well, but the issue is one with a domain used with cloudflare proxy service.
My domain is on a plesk server, I am on the way to switch to aapanel, so these are my first steps with aapanel. What I did:
Created Domain and all existing subdomains. Created subfolders with the subdomain-name at root folder. Selected redirect in domain menue - created a redirect for each subdomain to one of the former created folders with "keep url params). Loaded up the content.
Then switched to cloudflare, deleated all dns entries, loaded up all entries with new IPs of the aapanel server.
The rootdomain is reachable and SSL certificate with Wildcard was created. The domain works fine also the new folders with the content of the former subdomains, but all calls of the subdomains, which now should be redirected to the folders at rootdmain do create 404.
I surely forgot something tiny but I don't see it. At Cloudflare the domain DNS Entries are proxied (because of protection against unwanted traffic form china, northkorea etc).
At aapanel force https is enabled. So what I have to check or change to make it work. Have Ito cofigure something at reverse proxy in domain menue at aapanel? It's my guess, and if yes for each subdomain, only for root, and what to type in fields for cluóudflare proxy service?
To show what is at the moment here a sample.
subdomain.domain.com -- > doamin.com/subdomain/ ist the redirection.
domain.com works fine in browser, when I tip in doamin.com/subdomain/ is also fine. All the other nevigation on the root domain is also well.
But when I tip in browser subdomain.domain.com a 404 is shown instead the content of doamin.com/subdomain/ with the new redirect domain name.