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 many 50+ vHosts. Do I have to add the rewriting
to every vHost or is it also valid if I put the rewriting into the
Directory-clause of the Directory containing the DocRoots of the vHosts?
Regards,
Samy
Joshua Slive schrieb:
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 URL is
"shop.samy.newkilu.de/shop". But right now /shop is appended 10 times
until the maximum redirects is exceeded...
How can I do this?
If you can put the config in httpd.conf, then this vastly simplifies
things. Otherwise, this bug report mentions some work-arounds:
http://issues.apache.org/bugzilla/show_bug.cgi?id=40004
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]