Revision 7984
Added by Aaron Marcuse-Kubitza almost 12 years ago
web/subdomain2path | ||
---|---|---|
1 |
#!/usr/bin/env php |
|
2 |
<?php |
|
3 |
while (($line = fgets(STDIN)) !== false) |
|
4 |
{ |
|
5 |
$subdomain = rtrim($line, "\n"); |
|
6 |
$path = implode("/", array_reverse(explode(".", $subdomain))); |
|
7 |
print($path."\n"); |
|
8 |
} |
|
9 |
?> |
|
0 | 10 |
Also available in: Unified diff
Added web/subdomain2path for use by RewriteMap