Force www via htaccess using a WordPress plugin (Redirection)

Really all that is necessary is this:

Go Settings -> General: WordPress Address (URL) Site Address (URL)

And set both of them to (instead of, wordpress automagically takes care for setting all the urls to and that’s it.

If that isn’t enough:

Install the Redirection plugin and you can just set the options to ** to redirect to* with a 301, and that will take care of your htaccess as long as you keep the plugin active.

It is a good idea to use the Redirection plugin instead of directly editing your htaccess plugin, as anytime you save or reload your permalink settings, WordPress will overwrite your .htaccesss (some plugins may do that as well).


Tags: , ,

No comments yet.

Leave a Reply