2016-03-26 9 views

答えて

0

試行:

# Considering that base domain URL excludes index.html, index.php, welcome.html or something like that, we'll reduce matches to http(s)://base.subdomain/ and http(s)://base.subdomain 
RewriteCond %{REQUEST_URI} ^\/?$ 
RewriteRule /Controller/Method 
0

次のルールを使用できます。

RewriteEngine on 

##IF host==subdomain.domain.com## 
RewriteCond %{HTTP_HOST} ^sudomain\.domain\.com$ 
##And uri==/## 
RewriteCond %{REQUEST_URI} ^/$ 
##redirect to http://subdomain.domain.com/Contreller/method## 
RewriteRule^http://subdomain.domain.com/Controller/method [NC,L,R] 
関連する問題