Aliasdomain for website: Change Browser URL

Discussion in 'Installation/Configuration' started by fatbear, Dec 28, 2021.

  1. fatbear

    fatbear Member HowtoForge Supporter

    For the latest ISPConfig 3 installation, suppose I have 2 domains: primary.com and alias.com and do:
    • Domain: alias.com
    • Parent Website: primary.com
    • Redirect Type: no redirect
    • Redirect Path: <empty>
    • Auto-Subdomain: *.
    • SEO Redirect: No redirect
    • Don't add to Let's Encrypt certificate: [ ] unchecked
    • Active: [x] checked
    Then, in a browser, my test cases include:
    For each of the tests, the browser address bar shows the same URL I've entered. I note that no automatic http -> https redirection happens. For all of the above cases, I want the browser URL to change to https://primary.com. I've tried changing the Redirect Type to R=301,L. But, the browser URL does not change from alias.com to primary.com. The www removal does happen. I perform the tests only after I verify that the primary.com.vhost file has been updated.

    Can you explicitly state for each of the fields above what I should put to get the desired behavior that the browser URL should always change to https://primary.com, regardless of what is entered? Or, if other steps are needed, please share.

    Many thanks!
     
  2. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    Along with changing the type, set https://primary.com as the redirect path.
     

Share This Page