0
내 URL은htaccess 하위 도메인 페이지를 다시 작성할 수 없습니다.
입니다clients.myserver.com
및 내 고객이 자신의 사이트에 액세스 할 수 있도록
clients.mysever.com/clientname
클라이언트 이름 (해당 사이트의 루트)에있는 .htaccess 파일을 내가 재 작성 사용 예쁜 URL처럼
RewriteEngine On
RewriteRule ^([a-zA-Z0-9-z\-]+)/([a-zA-Z0-9-z\-]+)$ index.php?page=$1&subpage=$2
RewriteRule ^([a-zA-Z0-9-z\-]+)/([a-zA-Z0-9-z\-]+)/$ index.php?page=$1&subpage=$2
RewriteRule ^([a-zA-Z0-9-z\-]+)$ index.php?page=$1
RewriteRule ^([a-zA-Z0-9-z\-]+)/$ index.php?page=$1
이 .htacess 파일은 폴더가 하위 도메인에없는 경우 완벽하게 작동합니다. 즉, clients 폴더가 myserver.com/clientname에 있으면 모든 것이 올바르게 작동합니다. clients.myserver.com/clientnamem에 있으면 다시 쓰기가 작동하지 않습니다.
도움이 필요하십니까? 감사.