我下载了 a3m,它与 CI 1.7.2 一起打包,但我继续删除了运行所需的所有文件,并将它们放入我预先存在的安装中。转到我网站上的 a3m 控制器后,我收到:消息:未定义属性:CI::$session
所以我认为这是因为 htaccess 在 a3m 文件夹中寻找 a3m 文件,这里是 a3m htaccess:
RewriteEngine on
RewriteRule ^$ /a3m/index.php [L]
RewriteCond $1 !^(index\.php|css|img|js|scripts|system|uploads|robots\.txt|favicon\.ico)
RewriteRule ^(.*)$ /a3m/index.php/$1 [L]
我已经存在的用于 mod rewrite 的 htaccess 如下:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /beta/
#Removes access to the system folder by users.
#Additionally this will allow you to create a System.php controller,
#previously this would not have been possible.
#'system' can be replaced if you have renamed your system folder.
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
#When your application folder isn't in the system folder
#This snippet prevents user access to the application folder
#Submitted by: Fabdrol
#Rename 'application' to your applications folder name.
RewriteCond %{REQUEST_URI} ^application.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
#Checks to see if the user is attempting to access a valid file,
#such as an image or css document, if this isn't true it sends the
#request to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
# If we don't have mod_rewrite installed, all 404's
# can be sent to index.php, and everything works as normal.
# Submitted by: ElliotHaughin
ErrorDocument 404 /index.php
</IfModule>
正如评论显示的那样,我不久前在一个网站上使用过它,所以我想如何将两者结合起来我想是我想问的,因为我对使用 a3m 非常感兴趣。
多谢你们。