我在设置htaccess时遇到问题。每当我致电我的网站时,该网站仅可用于一种应用程序,而另一种则不能。
这是我的文件夹结构:
-application
-web
-service
-aset
-assets
-system
-.htaccess
-index.php
-service.php
这是我的htaccess的默认设置(适用于一个应用程序的所有版本:
RewriteEngine On
RewriteBase /mysite/
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
问题是,我想在1个Project中创建2个应用程序,所以我只需要创建应用程序/ Web和应用程序/服务,并将应用程序Web设置为默认应用程序。
我使用Code Igniter 3.0.2,Apache / 2.4.10(Win32)OpenSSL / 1.0.1i PHP / 5.6.3
我建议您将其他应用程序移至网络中。
-application
-config
-controller
-model
-view
-service
-application
...
-system
-.htaccess
-index.php
-system
-.htaccess
-index.php
这就像在代码点火器内部有一个代码点火器。