简体   繁体   中英

My domain only works with https://www.domainname.com otherwise domainname.com and www.domainname.com not working

My domain only works with https://www.domainname.com otherwise domainname.com and www.domainname.com not working domain managed by godaddy and hosted on ubuntu and sslcert installed.

Pls suggest.

If you're using an Apache server like your tags suggest, you should be able to add ServerAlias commands within your .conf file like so:

<VirtualHost *:443>
  ServerAdmin you@domainname.com
  DocumentRoot /opt/www/htdocs/domainname_com

  ServerName www.domainname.com
  ServerAlias domainname.com
</VirtualHost>

I highly suggest expanding and improving your question to get more detailed answers.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM