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\.
>
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
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
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
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
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
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
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
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
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
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
---
11 matches
Mail list logo