サブディレクトリからindex.phpを表示できない理由を誰かに教えてもらえます/oorbellenboutique/
か?
が表示されますhttp:// www.oorbellenboutique.nl/startpagina/index.php
が、f:/inetpub/wwwroot/oorbellenboutique
正しいURLは次のとおりです。http:// www.oorbellenboutique.nl/index.php
私のDNSは次のとおりです。
A *.oorbellenboutique.nl → 83.87.163.224
A oorbellenboutique.nl → 83.87.163.224
CNAME www.oorbellenboutique.nl → oorbellenboutique.nl
私のURLは次のとおりです:http ://www.oorbellenboutique.nl
Apache2.xを実行しています
NameVirtualHost 192.168.0.199:80
NameVirtualHost 192.168.0.199:443
<VirtualHost 192.168.0.199:80 192.168.0.199:443>
ServerName oorbellenboutique.nl
ServerAlias www.oorbellenboutique.nl
DocumentRoot f:/inetpub/wwwroot/oorbellenboutique
RewriteEngine On
KeepAlive Off
DocumentRoot "f:/inetpub/wwwroot"
<Directory f:/inetpub/wwwroot/oorbellenboutique>
DirectoryIndex index.php
Order deny,allow
Allow from all
</Directory>
RewriteCond %{HTTP_HOST} ^(?:www\.)?oorbellenboutique\.nl$
ReWriteRule ^(.*) /oorbellenboutique/$1
</virtualhost>
これは機能しますが、URLは次のようになります。
http:// www.oorbellenboutique.nl/oorbellenboutique/index.php
次のようにURLを短くするにはどうすればよいですか。
http:// www.oorbellenboutique.nl/index.php
NameVirtualHost 192.168.0.199:80
NameVirtualHost 192.168.0.199:443
<VirtualHost 192.168.0.199:80 192.168.0.199:443>
サーバー名www.oorbellenboutique.nl
ServerAlias * .oorbellenboutique.nl oorbellenboutique.nl
オプション+FollowSymLinks
RewriteEngineオン
RewriteCond%{HTTP_HOST} ^(?: www。)?oorbellenboutique.nl $
<Directory f:/inetpub/wwwroot/oorbellenboutique>
DirectoryIndex index.html index.php
Order deny,allow
Allow from all
</Directory>
RewriteRule ^ / $ / oorbellenboutique / [R]
</ virtualhost>