Hey, this is my best guess:

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteCond %{HTTP_HOST} ^([^.]+)\.samy\.newkilu\.de
RewriteRule ^/(.*)$  %1/$1 [L]

But somehow this doesn't do anything... What am I doing wrong?
I'm trying to rewrite "sub-sub"-domains to the appropriate folder.

Regards,
Samy

Joshua Slive schrieb:
On 8/4/07, Samuel Vogel <[EMAIL PROTECTED]> wrote:
I forgot to specify what i want/need.
I want to specifically know how the mod_rewrite solution works, because
I don't see how I can user the subdomain from RewriteCond in the
RewriteRule statement...

This example shows one way to do it:
http://httpd.apache.org/docs/2.2/vhosts/mass.html#homepages.rewrite

In general, you use back-references to extract matches from
RewriteCond's. The first match would be %1, the second %2, etc. See
the RewriteRule docs.

If you want more help, post your best guess at the correct config
along with details on what you want it to do and what it is actually
doing.

Joshua.

---------------------------------------------------------------------
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]

---------------------------------------------------------------------
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