0
我有一個通配符SSL證書的bluehost,我在訪問子域中的文件夾時遇到問題。 bv-site是在一個名爲bv-site /的子文件夾中,當我去https://bv-site.kavablue.com/js例如它顯示頂層文件夾的內容?幫助將是驚人的,Bluhost需要兩個.htaccess文件,一個在頂層,一個在子域文件夾下面是文件。htaccess問題訪問子域上的文件夾
#top level folder .htaccess file
# boatvibes site
#.htaccess WildCard SSL
RewriteEngine On
RewriteCond %{HTTP_HOST} ^bv-site.kavablue.com$
RewriteCond %{REQUEST_URI} !^/bv-site/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /bv-site/$1
RewriteCond %{HTTP_HOST} ^bv-site.kavablue.com$
RewriteRule ^(/)?$ bv-site/index.html [L]
#file in /bv-site
RewriteEngine on
RewriteCond %{HTTP_HOST} ^kavablue\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.kavablue\.com$
RewriteRule ^/?$ "https\:\/\/bv-site\.kavablue\.com\/" [R=301,L]
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
#RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule . index.html [L]
</IfModule>
#options
#RewriteCond %{HTTP:Accept-Language} ^.*(de|es|fr|it|ja|ru|en).*$ [NC]
#RewriteRule ^(.*)$ - [env=prefer-language:%1]
是的,你是正確的,我更新了,但並沒有幫助。謝謝 – leafpointinc 2014-12-19 22:19:41