Re: [EMAIL PROTECTED] Rewriting Subdomains to folders

2007-08-08 Thread Joshua Slive
On 8/8/07, Samuel Vogel <[EMAIL PROTECTED]> wrote: > This is how my vHost looks like now: > > > ServerName samy.newkilu.de > ServerAlias *.samy.newkilu.de > > DocumentRoot /data/apache/samy/www > > RewriteEngine On > RewriteCond %{HTTP_HOST} !^www\. >

Re: [EMAIL PROTECTED] Rewriting Subdomains to folders

2007-08-08 Thread Samuel Vogel
This is how my vHost looks like now: ServerName samy.newkilu.de ServerAlias *.samy.newkilu.de DocumentRoot /data/apache/samy/www RewriteEngine On RewriteCond %{HTTP_HOST} !^www\. RewriteCond %{HTTP_HOST} ^([^.]+)\.samy\.newkilu\.de

Re: [EMAIL PROTECTED] Rewriting Subdomains to folders

2007-08-07 Thread Samuel Vogel
I can, I was just doing it in in .htaccess to ease things up for testing... This is how my rewriting looks right now: RewriteEngine On RewriteCond %{HTTP_HOST} !^www\. RewriteCond %{HTTP_HOST} ^([^.]+)\.samy\.newkilu\.de RewriteRule ^(.*)$ %1/$1 [L] What do you propose? Another question: I have

Re: [EMAIL PROTECTED] Rewriting Subdomains to folders

2007-08-07 Thread Joshua Slive
On 8/7/07, Samuel Vogel <[EMAIL PROTECTED]> wrote: > Doing this I get maximum rewrites exceeded. > I know what the problem is, but I don't know how to fix it. > I need a RewriteCond that checks if the sub-subdomain is allready > appended to the url. > So the rewriting needs to stop if the rewritten

Re: [EMAIL PROTECTED] Rewriting Subdomains to folders

2007-08-07 Thread Samuel Vogel
Doing this I get maximum rewrites exceeded. I know what the problem is, but I don't know how to fix it. I need a RewriteCond that checks if the sub-subdomain is allready appended to the url. So the rewriting needs to stop if the rewritten URL is "shop.samy.newkilu.de/shop". But right now /shop i

Re: [EMAIL PROTECTED] Rewriting Subdomains to folders

2007-08-06 Thread Joshua Slive
On 8/6/07, Samuel Vogel <[EMAIL PROTECTED]> wrote: > 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 t

Re: [EMAIL PROTECTED] Rewriting Subdomains to folders

2007-08-06 Thread Samuel Vogel
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. Reg

Re: [EMAIL PROTECTED] Rewriting Subdomains to folders

2007-08-04 Thread Joshua Slive
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: ht

Re: [EMAIL PROTECTED] Rewriting Subdomains to folders

2007-08-04 Thread Samuel Vogel
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... Joshua Slive schrieb: On 8/4/07, Samuel Vogel <[EMAIL PROTECTED]> wrote: What would be th

Re: [EMAIL PROTECTED] Rewriting Subdomains to folders

2007-08-04 Thread Joshua Slive
On 8/4/07, Samuel Vogel <[EMAIL PROTECTED]> wrote: > What would be the best way to rewrite sub.domain.com to /sub while using > a wildcard? > I know how to do it on a per subdomain basis, but is there a way to do > this for all subdomains (except www) to the folder name ? Either mod_vhost_alias or

[EMAIL PROTECTED] Rewriting Subdomains to folders

2007-08-04 Thread Samuel Vogel
What would be the best way to rewrite sub.domain.com to /sub while using a wildcard? I know how to do it on a per subdomain basis, but is there a way to do this for all subdomains (except www) to the folder name ? Thanks, Samy ---