View Single Post
Old 11-27-2009, 09:37 PM  
Killswitch - BANNED FOR LIFE
Guest
 
Posts: n/a
Thanks for everyones help, but I finally after giving it another whirl today, got it.

Problem? I put the code just below RewriteBase /

Code:
<IfModule mod_rewrite.c>

  RewriteEngine On

  Options +FollowSymLinks
  Options +Indexes

  ErrorDocument 404 /

  RewriteBase /
  RewriteCond %{HTTP_HOST} ^([^.]+\.(com|net|org))$ [NC]
  RewriteRule ^(.*)$ http://www.%1/$1 [L,R=301]

  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . / [L]

</IfModule>
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote