Webinoly is just the perfect tool for NGINX experts. Give it a try!
0 votes
278 views
by Rookie
edited by

Hello,

Since, I wanted to install WordPress on the www version. I had entered site name with www. 

wget -qO weby qrok.es/wy && sudo bash weby 3
sudo site www.example.com -wp=default -cache=on
sudo site www.example.com -ssl=on


Result

HTTPS is working fine for www version, but not for non-www. 

* Should I re-installing using command? 
sudo site example.com -wp=default -cache=on

But I have doubt, will it force non-www? 

* Or, is there any tweak which can fix by installing SSL on non-www version? 

Thanks

1 Answer

0 votes
by Expert

That's exactly how it's supposed to work.

Please, read the documentation!

Sites created with root domains example.com will respond to both www subdomain and non-www requests. Subdomain sites will only respond to the indicated subdomain sub.example.com.

If you want to force the www, you can use the -force-redirect command.

Regards.

Welcome to the Community site for Webinoly.

Our Optimized LEMP Web Server is a powerful set of commands for doing just about anything you could wish.

With Webinoly you can set up your NGINX web server in just one step.

* * * * * * *

To report a bug, please create a new issue on GitHub or ask a question here with the bug tag.
Webinoly Support Paypal Donations

PayPal · GitHub Sponsors · Bitcoin

It is very important that any visitor to the site read the disclaimer, terms of use and privacy and legal statement before start browsing.

...