> -----Original Message-----
> From: Chris Arnold [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, November 13, 2007 1:12 AM
> To: users@httpd.apache.org
> Subject: Re: [EMAIL PROTECTED] domain.com/~user -> user.domain.com
> 
> >>Thanks! but where I have to put this code? In which .htaccess?
> 
> I too would like to use this but when i put it in my htaccess 
> file, it does not work. 

What does "does not work" mean???

> Here is my htaccess with the supplied 
> code in it. Maybe i am not finding the right place to place this code?

Couple of points:

- do you have mod_rewrite? (cf. IfModule...)
- why does this need to go in a .htaccess file? It will only be used if
the directory is accessed - are you sure that is happening? Better is to
put it into the main config.
- The Big One: this whole user.domain.com -> www.domain.com/~user will
only work if you have registered user.domain.com in DNS to point to an
IP you are listening to (usually same as www.domain.com). BTW, this is
why "does not work" is annoying - if you had said, "I get Bad Gateway",
then we would know you had not set up DNS. If you said "I just get
www.domain.com" then we'd know it was something in the config...

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 


> 
> <Limit GET>
> order allow,deny
> allow from all
> deny from 81.177.14.
> deny from 81.177.15.
> deny from 85.255.119.
> deny from 208.66.193.
> deny from 195.225.177.
> </Limit>
> <Limit POST>
> order allow,deny
> allow from all
> deny from 81.177.14.
> deny from 81.177.15.
> deny from 208.66.193.
> </Limit>
> # BEGIN WordPress
> <IfModule mod_rewrite.c>
> RewriteEngine On
> RewriteBase /
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteRule . /index.php [L]
>    RewriteCond %{HTTP_HOST} !www.domain.com$ [NC]
>    RewriteCond %{HTTP_HOST} ^(www.)?([a-z0-9-]+).domain.com$ [NC]
>    RewriteRule (.*) ~%2/$1 [L]
> </IfModule>
> 
> # END WordPress
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP 
> Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>    "   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
 
 
This message is for the named person's use only. It may contain confidential, 
proprietary or legally privileged information. No confidentiality or privilege 
is waived or lost by any mistransmission. If you receive this message in error, 
please notify the sender urgently and then immediately delete the message and 
any copies of it from your system. Please also immediately destroy any 
hardcopies of the message. You must not, directly or indirectly, use, disclose, 
distribute, print, or copy any part of this message if you are not the intended 
recipient. The sender's company reserves the right to monitor all e-mail 
communications through their networks. Any views expressed in this message are 
those of the individual sender, except where the message states otherwise and 
the sender is authorised to state them to be the views of the sender's company.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to