Welcome Guest. Please Login or Register  


You are here: Index > Webuzo > General Support > Topic : Force www. on primary domain



Normal Mode | Print  

Force www. on primary domain
Dhanya
Group: Member
Post Group: Working Member
Posts: 200
Status:
Hi,

In order to redirect http://domain.com on https://www.domain.com you need to add the following code block only in the extra conf:
if ($scheme = http) {
        return 302 https://www.$server_name$request_uri;
}

Let us know if you need any further information from us.
IP: --   


Threads
 erile   Force www. on primary domain (3 Replies, Read 29964 times)
    |--  erile   Unless mistake (I'll...   on August 18, 2019, 10:34 pm
    |--  Dhanya   Hi, In order...   on August 19, 2019, 1:01 pm
    |--  erile   I know this,...   on August 20, 2019, 11:56 am

« Previous    Next »

Normal Mode | Print  



Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is November 15, 2026, 11:38 am.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.007