Difference between revisions of "Adding www to a url"
From Joomla! Documentation
(New page: == 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} ^whisperingtree\.net$ [NC] RewriteRule ^(.*)...) |
|||
Line 3: | Line 3: | ||
Add the following to your htaccess file | Add the following to your htaccess file | ||
− | + | {{{ | |
RewriteEngine On | RewriteEngine On | ||
RewriteCond %{HTTP_HOST} ^whisperingtree\.net$ [NC] | RewriteCond %{HTTP_HOST} ^whisperingtree\.net$ [NC] | ||
RewriteRule ^(.*)$ http://www.whisperingtree.net/$1 [R=301,L] | RewriteRule ^(.*)$ http://www.whisperingtree.net/$1 [R=301,L] | ||
+ | }}} |
Revision as of 15:54, 24 September 2009
How do I get www as a prefix in all my joomla sites?[edit]
Add the following to your htaccess file {{{ RewriteEngine On RewriteCond %{HTTP_HOST} ^whisperingtree\.net$ [NC] RewriteRule ^(.*)$ http://www.whisperingtree.net/$1 [R=301,L] }}}