Actions

Adding www to a url

From Joomla! Documentation

Revision as of 15:59, 24 September 2009 by Mandville (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} ^domain\.net$ [NC]
RewriteRule ^(.*)$ http://www.domain.net/$1 [R=301,L]