Dec 10, 2010
Posted by Artur in Administration | 2 Comments
Non-www to www with wildcard in Nginx
There is solution:
if ($host !~* www\.(.*)) {
rewrite ^(.*)$ http://www.$host$1 permanent;
}
Posted by Artur in Administration | 2 Comments
There is solution:
if ($host !~* www\.(.*)) {
rewrite ^(.*)$ http://www.$host$1 permanent;
}
I am having an issue with NGINX from from rewriting non WWW urls to WWW urls.
I am not able to implement your solution can you please provide a sample complete example of implementing this solution.
Thanks,
Jayesh Gopalan
I can alreday tell that’s gonna be super helpful.