我安裝了Codeigniter併爲我的主站點工作。讓Codeigniter忽略目錄
但我現在試圖添加一個附加域到相同的託管帳戶,所以我可以有兩個網站在同一個託管上運行。附加域在主public_html文件夾中創建一個新文件夾來存儲網絡文件。
如何讓Codeigniter忽略此目錄?當我嘗試查看網站時,該網站無法正常加載。
我在主站點上也有一個SSL,併爲www URLs重定向。這裏是我的.htaccess文件:
RewriteEngine on
Options +FollowSymLinks
RewriteBase/
RewriteCond %{HTTP_HOST} ^www\.mysite\.co.uk$ [NC]
RewriteRule ^(.*)$ http://mysite.co.uk/$1 [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} (site|sections|here)
RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTPS} onsite|sections|here)
RewriteRule ^(.*)$ http://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
http://stackoverflow.com/questions/1054458/handling-subdomains-and-https-with-htaccess?rq=1它可能與您的問題有關。 – 2012-10-08 09:42:00