www dropping
(2 posts)
(2 voices)
-
Guv old boy, this is serious:-
I am setting up my sites as per the second script which should create www URLS, rather than http://domain.com
However I am getting domain.com
Any ideas?
Posted 9 months ago # -
Marcus, just swap the redirects around (by default www > non-www) in your vhost file ...
from:-
server { listen 80; server_name http://www.mydomain.com; rewrite ^/(.*) http://mydomain.com/$1 permanent; } server { listen 80; server_name mydomain.com; [et ceteraaaa]to:-
server { listen 80; server_name mydomain.com; rewrite ^/(.*) http://www.mydomain.com/$1 permanent; } server { listen 80; server_name http://www.mydomain.com; [et ceteraaaa]:)
Posted 8 months ago #
Reply
You must log in to post.
Want HTML?
a blockquote code em strong ul ol liPlace code between backticks `codeHere`
You've got it.
