Redirect non-www to www with Apache and NGINX

A two minute guide to redirecting all traffic on your website from the bare / naked / apex domain to www.

It is a common requirement for system and website administrators to redirect users to a common entry point for their website — also known as a canonical hostname. This is usually in one of two directions, i.e…

--

--

--

DevOps | SRE | AWS | GCP https://twitter.com/davelms

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

DDA Line Drawing Algorithm

Creating a bridge in Flutter between Dart and native code in Java or ObjectiveC

Erlang developments for the manufacturing and IoT industry

What is the Navigation (NavMesh) System in Unity 2021?

Must-know Topics on Operating System

Kafka Stream Microservice Sizing Recipe

Cucumber in Ruby on Rails

Time Complexity… how fast your code runs

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Dave Sugden

Dave Sugden

DevOps | SRE | AWS | GCP https://twitter.com/davelms

More from Medium

Access Personal Gmail from Cloud Functions using OAuth2

Check container vulnerability with Snyk in CI/CD pipeline using Jenkins

Kerberos based User Authentication and SSO in Web Application

Automating Hashicorp Vault Secrets Retrieval with Ansible