tescik tescikowski
New Pleskian
- Server operating system version
- Debian 12
- Plesk version and microupdate number
- 18.0.77 Update #2
I set up hosting for my client using the “Forwarding (Moved permanently (code 301))” hosting type.
My client wants the redirect target to be the “www” subdomain for the same domain.
For example:
mydomain.com > http://www.mydomain.com/path/to/file.html
Subdomain www.mydomain.com is a CNAME record that points to the external domain outdomain.org.
When I try to set this target, I get the following error:
Error: An invalid URL was requested.
Or
Redirect address cannot be set to a domain name.
I suspect this is related to the hard-coded association between the domain and www.
In Hosting Types: Website Hosting, you can set Preferred domain to None. Is there a similar option for Hosting Types: Forwarding? Or is there another workaround for my issue with a single domain?
The only solution I came up with is to create a web hosting account and set up a redirect using an .htaccess file.
But I create the forwarding service using an API, and I’d prefer not to introduce exceptions into the automated creation process and keep the forwarding as is.
OS: Debian 12
Plesk Obsidian 18.0.77 Update #2 Web Host Edition (an update to 18.0.78 is coming in two weeks, but I don’t think the version is the issue here)
My client wants the redirect target to be the “www” subdomain for the same domain.
For example:
mydomain.com > http://www.mydomain.com/path/to/file.html
Subdomain www.mydomain.com is a CNAME record that points to the external domain outdomain.org.
When I try to set this target, I get the following error:
Error: An invalid URL was requested.
Or
Redirect address cannot be set to a domain name.
I suspect this is related to the hard-coded association between the domain and www.
In Hosting Types: Website Hosting, you can set Preferred domain to None. Is there a similar option for Hosting Types: Forwarding? Or is there another workaround for my issue with a single domain?
The only solution I came up with is to create a web hosting account and set up a redirect using an .htaccess file.
But I create the forwarding service using an API, and I’d prefer not to introduce exceptions into the automated creation process and keep the forwarding as is.
OS: Debian 12
Plesk Obsidian 18.0.77 Update #2 Web Host Edition (an update to 18.0.78 is coming in two weeks, but I don’t think the version is the issue here)