View Single Post
  #2  
Old 24th May 2010, 20:11
BorderAmigos BorderAmigos is offline
Senior Member
 
Join Date: Apr 2008
Location: San Diego & Tijuana
Posts: 302
Thanks: 26
Thanked 33 Times in 31 Posts
Send a message via MSN to BorderAmigos Send a message via Yahoo to BorderAmigos
Default

In ISPConfig3 > Sites > Web Domain... Domain: yourdomain.com, Auto-Subdomain: www.

If you want to redirect then with mod_rewrite installed and enabled put one of these in your .htaccess file...

To direct all www.example.com to example.com
Code:
<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteBase /
  RewriteCond %{HTTP_HOST} ^www\.yourdomain\.com$ [NC]
  RewriteRule ^(.*)$ http://yourdomain.com/$1 [L,R=301]
</IfModule>
To direct all example.com to www.example.com
Code:
<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteBase /
  RewriteCond %{HTTP_HOST} ^yourdomain\.com$ [NC]
  RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [L,R=301]
</IfModule>
__________________
System6Hosting.com, ISPConfig 3, Debian.
Reply With Quote