ルート フォルダwww_root/
( www.examle.com
)にサイトがあります
あります.htaccess
:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
RewriteRule ^(.*)$ http://www.examle.com/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
またsubdomain.example.com
、フォルダーにサブドメインがありますwww_root/subdomain
。そしてあります.htaccess
:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
ブラウザに入力するとwww.example.com/subdomain
- wokringしかし、URLを次のように入力するとsubdomain.example.com
- 機能しません(ホームページのみ)
Plsは助けてください、私が間違っていること。
ありがとう。