• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Please beaware of a breaking change in the REST API on the next Plesk release (18.0.62).
    Starting from Plesk Obsidian 18.0.62, requests to REST API containing the Content-Type header with a media-type directive other than “application/json” will result in the HTTP “415 Unsupported Media Type” client error response code. Read more here

Redirect domain via htaccess

XCore

New Pleskian
I've tried several versions of domain redirects using an '.htaccess' file but none work. I can't find any references to using htaccess files in the docs so I'm perplexed.
I'm not using the Plesk 'alias' or 'forwarding' option because my Plesk install is at 'cp.pleskinstall.foo' and the domain I need to forward is 'pleskinstall.foo'.
Also, the Plesk docs offer a phantom solution (as in it doesn't exist in my install):
"To make an existing domain a domain forwarder:
Go to Websites & Domains, click Hosting Settings beside the name of the domain you want to make a forwarder, and click theChange link next to the Hosting type field and specify the following:
  • Under Hosting type, select the Forwarding option.
  • In the Destination address box, type the URL address to which you want to redirect visitors.
  • Under Forwarding type, select standard or frame forwarding. To learn more about forwarding types, see Forwarding."

Any help is greatly appreciated.

Thank you!
 
Last edited:
Thanks for the reply, Swen.
rewrite is already enabled in Admin>Tools & Settings>Apache Web Server Settings
 
Not sure what you're asking but I do appreciate your attempt to help.
I've removed the domain and readded it as an alias and so far it's fine. I just hope that an eventual SOA update doesn't reveal a problem.
 
Back
Top