Welcome
Guest. Please
Login
or
Register
Client Area
|
Softaculous Cloud
|
Calendar
|
Quick Links
|
You are here:
Index
>
Webuzo
>
General Support
> Topic :
Nginx: How to Redirect non-www to www for specified doman?
Normal Mode
|
Print
Nginx: How to Redirect non-www to www for specified doman? (4 Replies, Read 63310 times)
ewwink
December 23, 2013, 12:12 am
Group:
Member
Post Group: Newbie
Posts: 23
Status:
Hello,
I need to redirect from non-www to www, where or how should I insert the following lines
Code
server {
listen 80;
server_name example.com;
return 301
http://www.example.com$request_uri;
}
server {
listen 80;
server_name www.example.org;
...
}
IP:
--
Threads
ewwink
Nginx: How to Redirect non-www to www for specified doman?
(4 Replies, Read 63310 times)
|--
valley
You can try...
on December 23, 2013, 5:29 am
|--
ewwink
You can try...
on December 23, 2013, 5:36 am
|--
ewwink
Found it, I...
on December 23, 2013, 5:47 am
|--
valley
Found it, I...
on December 23, 2013, 1:07 pm
« Previous
Next »
Normal Mode
|
Print
Users viewing this topic
1 guests, 0 users.
All times are GMT. The time now is May 19, 2024, 4:23 am.
Powered By AEF 1.0.8
© 2007-2008
Electron Inc.
Queries: 10 | Page Created In:0.200