here's a simple nginx example:
server { 
listen 80; 
server_name www.linuxfromscratch.org;
# $scheme will get the http protocol 
# and 301 is best practice for tablet, phone, desktop and seo.
# 301 is permanent if you plan on changing use 302
return 301 $scheme://domain.com$request_uri;
} 
server { 
listen 80; 
server_name linuxfromscratch.org; 
# here goes the rest of your config file 
# example 
location / { rewrite ^/cp/login?$ /cp/login.php last; 
    # etc etc... 
     } 
}

Regards,
Rob

P.S.  Many DNS providers also have capability.  Like setup a www cname.  Good 
luck.

On May 22, 2015 3:06:27 PM EDT, Robert Sink <[email protected]> wrote:
>suggest: add a(n) apache/nginx redirect so that ppl visiting
>www.linuxfromscratch.org get redirected to naked domain [currently
>502].  Google search results seem to show mostly
>www.linuxfromscratch.org links.
>
>Rob
>-- 
>Sent from my Android device with K-9 Mail. Please excuse my brevity.

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.
-- 
http://lists.linuxfromscratch.org/listinfo/website
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to