Re: Rewriting Subdomains to folders

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

 



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 <samy-delux@xxxxxx> 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: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx

---------------------------------------------------------------------
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: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux