Actions

Adding www to a url

From Joomla! Documentation

Revision as of 12:36, 7 March 2011 by G1smd (Talk | contribs)

How do I get www as a prefix in all my joomla sites?

Add the following to your htaccess file

RewriteEngine On
RewriteCond %{HTTP_HOST} !^(www\.example\.com)?$
RewriteRule (.*) http://www.example.com/$1 [R=301,L]

[[Category::Installation]]