내가 하위 폴더 에 하위 도메인을 리디렉션하려고와 하위 폴더에 하위 도메인을 리디렉션 내가 루트에 배치 "테스트"(/ 테스트)htaccess로
subdomain1.mysite.com
subdomain2.mysite.com
subdomain3.mysite.com
in test i have 3 folders `/test/subdomain1 , /test/subdomain2, /test/subdomain3`
what i want is that:
when i go to subdomain1.mysite.com it should be reading from: /test/subdomain1
when i go to subdomain2.mysite.com it should be reading from: /test/subdomain2
when i go to subdomain3.mysite.com it should be reading from: /test/subdomain3
here is my htaccess used - placed in the folder "/test" and i think here is the problem!!:
Options -Indexes
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase/
RewriteCond %{HTTP_HOST} ^subdomain1.mysite.com$ [NC]
RewriteRule ^(.*)$ subdomain1/$1 [L,QSA]
RewriteCond %{HTTP_HOST} ^subdomain2.mysite.com$ [NC]
RewriteRule ^(.*)$ subdomain2/$1 [L,QSA]
RewriteCond %{HTTP_HOST} ^subdomain2.mysite.com$ [NC]
RewriteRule ^(.*)$ subdomain3/$1 [L,QSA]
</IfModule>
i am getting a "500 Internal Server Error" when accessing any subdomain...
does RewriteBase works in subfolders ? if not placed the root ?
any idea?
thanks
의
subdomain2는'
'이 라인에'RewriteRule의 ^입니다 $ (*.) subdomain2/$ 1 [L, QSA]
'여기에 오류가 있거나 htaccess 파일에 오류가 있습니까? –
아, 아니 매트 그 맞춤법 실수 나는 그것을 제거 !! –