View Single Post
Old 11-12-2008, 08:30 AM  
nico-t
emperor of my world
 
Join Date: Aug 2004
Location: nethalands
Posts: 29,903
Thanks for the effort, but that doesnt work at all doesnt even redirect to the main domain

Let me show you how the htaccess looks:

Code:
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^([^.]+)\.domain\.com$ [NC]
RewriteCond %1 !^(www)$ [NC]
RewriteRule ^$ /%1/$1 [L]
RewriteCond %{HTTP_HOST} ^domain\.com$
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]
And antonio i dont know what you mean


edited a bit

Last edited by nico-t; 11-12-2008 at 08:32 AM..
nico-t is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote