301 .
    ~
Advanced Hosters -

cashmir
: 18.11.2008
: 169
# : 27, 2013 2:23 pm
,
?
domen.com/shop/shop1 shop1.domen.com
301 ?

banzai
: 24.05.2007
: 730
# : 27, 2013 3:26 pm

:
mod_rewrite
( )

1. , .
2. subdomains._.ru *._.ru , /home/_/subdomains
!!! Apache.
3. (_.ru)
4. * A IP- . ( ), .
5. subdomains
6. .htaccess, :

RewriteEngine On
RewriteCond $1 !^subs/
RewriteCond %{HTTP_HOST} !^(www.)?_\.ru$ [NC]
RewriteCond %{HTTP_HOST} ^(www.)?([a-z0-9-]+)\._\.ru$ [NC]
RewriteRule ^(.*)$ subs/%2/$1 [L]
7. subdomains subs
8. subs, subs .
/home/_/subdomains/subs/test/ test._.ru


http://live-co.com/viewtopic.php?pid=265128#p265128
,
    ~