我安装了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