Forum Moderators: phranque

Message Too Old, No Replies

mod rewrite.Am i doing something wrong?

         

raz_atoth

5:48 pm on Jul 27, 2006 (gmt 0)

10+ Year Member



Hello all,
Let's say i have a domain.Because i'm not feeling particular creative at this moment let's call it www.example.com.For every registered user i want to create a subdomain,like www.johndoe.example.com.Seems a easy task,still since it doesn't work,i must be missing something.What i have in my htaccess file that should handle the redirects is this:
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST}!^www\.example\.com$
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
I'm not quite an apache guru :) ,in fact it's the first time when i must deal with an htacess file so my best guess is that the cause of my problems is in the above lines,so any ideas will be higly appreciated.
Thanks.

[edited by: jdMorgan at 4:59 am (utc) on July 28, 2006]
[edit reason]
[1][edit reason] Example,com [/edit]
[/edit][/1]