[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problem z Apachem



Witam,

Dnia Wed, Aug 13, 2003 at 01:40:49PM CEST, Wojciech Kaczmarek napisał:

: Można także pozbyć się tyldy ze swojego adresu:
: 
Hmm.. A nie prosciej ModRewrite do tego zaciagnac?

Mozna na dwa sposoby:
- http://user.domena.pl
 wtedy:
w VirtualHost dla domena.pl:
 RewriteCond %{HTTP_HOST}       ^[^.]+\.domena\.pl$
 RewriteRule ^(.+)              %{HTTP_HOST}$1  [C]
 RewriteRule ^([^.]+)\.domena\.pl(.*)$ /home/users/$1/public_html/$2 [L]

- http://domena.pl/user
 tutaj to trza zajrzec do dokumentacji bo nie bawilem sie takim rozwiazaniem.

Wiecej: 
http://httpd.apache.org/docs-2.1/mod/mod_rewrite.html

Pozdrawiam,
Tomasz T. Ciaszczyk


-- 
.: ciacho<at>ciacho.pl ciacho<at>jabber.org http://ciacho.pl :.
.:    What matters is not the length of the wand, but the    :.
.:                    magic in the stick.                    :.

Attachment: pgpPL1oe7JgLi.pgp
Description: PGP signature


Reply to: