Actions

Difference between revisions of "Adding www to a url"

From Joomla! Documentation

m (How do I get www as a prefix in all my joomla sites?)
Line 1: Line 1:
 
 
== How do I get www as a prefix in all my joomla sites? ==
 
== How do I get www as a prefix in all my joomla sites? ==
  
Line 8: Line 7:
 
RewriteRule ^(.*)$ http://www.domain.net/$1 [R=301,L]
 
RewriteRule ^(.*)$ http://www.domain.net/$1 [R=301,L]
 
</source>
 
</source>
 +
 +
[[Category:FAQ]]
 +
[[Category::Installation]]

Revision as of 08:48, 17 September 2010

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]]