Press "Enter" to skip to content

WordPress Multisite WWW-redirect

FacebooktwitterredditmailFacebooktwitterredditmail

During the set-up of my new site configuration I stumbled upon an issue that prevented my from visiting my root domain without using the “www” prefix. This bothered me as I never use this prefix manually. After some googling around I found a quick and simple solution that automatically redirects the user to the www-prefixed domain.

In the “.htaccess” file in your root folder add the following code segment at the start of your file above the part you replaced in the WordPress MultiSite installation:

Replace “domain.com” with your domain (e.g. triplustutorials.be). Your root domain is now accessabel without the www prefix! Thanks to this post for the clarification.

FacebooktwitterredditmailFacebooktwitterredditmail

Be First to Comment

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.