M mohammad.983 Verified User Joined Jun 26, 2015 Messages 34 Jul 20, 2016 #1 Hi guys. which code should I use in "CUSTOM_HTTPD" for redirect mysite.com to www.mysite.com ?
M mohammad.983 Verified User Joined Jun 26, 2015 Messages 34 Jul 26, 2016 #3 My web server is Ngnix. I found it and its work. Code: if ($host ~* ^domain.com$) { return 301 $scheme://www.domain.com$request_uri; }
My web server is Ngnix. I found it and its work. Code: if ($host ~* ^domain.com$) { return 301 $scheme://www.domain.com$request_uri; }