Let’s say you want to redirect users from the www sub-domain of your website to direct access via the non-sub-domain url.
Just add this to your server{} block:
if ($host != ‘yourdomain.com’ ) { rewrite ^/(.*)$ http://yourdomain.com/$1 permanent; }
This actually will redirect any sub-domain to the non-sub-domain url. But what if, like Less Accounting, your site has user accounts for sub-domains or you have other valid sub-domains, but you still want to get users away from www?
Just add this to your server{} block:
if ($host = ‘www.yourdomain.com’ ) { rewrite ^/(.*)$ http://yourdomain.com/$1 permanent; }
If you wanted it to build a product you’d find a way to get time to work on it. If you really wanted to start that new hobby you’d sacrifice something to find the time and money to do it.
I'll define a "Wannabe Entrepreneur" as someone who has never made money from their businesses. Here are the different types of wannabes.
In the past few years I've built go-carts, built a 200+ sq ft workshop, written several eBooks. How do I create a life where I have time to work on side projects?
Receive 5 Software projects mistakes we have made over the years and how to avoid them.