모든 검색어를 mobile.mydomain.net
에서 web.mydomain.net
으로 리디렉션하고 주소 표시 줄에 mobile.mydomain.net
을 표시하고 싶습니다. /mydomain/
-www.mydomain.net
점, 주소 /mydomain/subdomains/web/public/
-web.mydomain.net
점 /mydomain/subdomains/mobile/
에 주소 mobile.mydomain.net
점 주소 내 서비스 제공 구성에서하나의 하위 도메인에서 다른 하위 도메인으로 리디렉션 한 후 URL을 변경하지 않는 방법
/root
-/vrmd
--/homepages
---/myusername
----/mydomain
-----/subdomains
------/web
-------/public
------/mobile
:
내 서비스 제공 업체의 디렉토리 구조는 다음과 같습니다.
간단한 PHP 스크립트 (/mobile/index.php
)에서 $_SERVER['DOCUMENT_ROOT']
상수 값을 반향 출력하면 /homepages/myusername/mydomain/subdomains/mobile
을 출력합니다.
1) 나는 재 작성 조건과 규칙을 넣어야 어디? .htaccess
파일에서 /mydomain
또는 그 이하인 /mydomain/subdomains/mobile
...?
2) 어떤 조건과 규칙을 써야합니까? 예를 들어, 주소가 아닌 web.mydomain.net/blogs
의 내용 만 표시하려면 mobile.mydomain.net/blog
을 입력해야합니다.
아무도 도와 줄 수 있습니까?
응답 해 주셔서 감사합니다. 나는 그것을하려고 노력할 것이다! – user597009