Actions

Adding www to a url

From Joomla! Documentation

Revision as of 09:48, 17 September 2010 by Batch1211 (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]

[[Category::Installation]]