我目前使用SshClient cSSH = new SshClient("1.1.1.1", 420, "username", "password");
cSSH.Connect();
SshCommand x = cSSH.RunCommand("exec\"/var/lib/asterisk/bin/retrieve_conf\"");
cSSH.Disconnect();
cSSH.Dispose();
框架在网络应用中工作。它在本地与Codeingniter
很好地工作,但是当它传递给实时{{1}}服务器时,它只加载主页,当我尝试路由到另一个页面时它会:错误 - 404
我已经尝试过改变:
1- Wampserver32
至apache
2- $config['index_page'] = 'index.php';
到$config['index_page'] = 'index.php'?;
感谢您的帮助。我实际上已经封锁了一天。
confing.php文件
$config['uri_protocol'] = 'REQUEST_URI';
routes.php文件
$config['uri_protocol'] = 'PATH_INFO';
.htaccess文件
...
$config['base_url'] = 'http://s661658794.onlinehome.fr/admin';
$config['index_page'] = 'index.php';
$config['uri_protocol'] = 'PATH_INFO';
...
文件夹
$route['default_controller'] = 'welcome';
$route['Admin'] = 'admin/Login';
$route['Login'] = 'admin/Login/dashboard';
$route['Home'] = 'admin/Home';
$route['Userinfo'] = 'admin/Usercontroller';
$route['History'] = 'admin/Historycontroller';
$route['Changepassword'] = 'admin/Changepassword';
$route['Notification'] = 'admin/Notification';
$route['Logout'] = 'admin/Login/logout';
$route['Forgotpassword'] = 'admin/Login/Forgotpassword';
$route['404_override'] = '';
$route['translate_uri_dashes'] = FALSE;
答案 0 :(得分:0)
如果你的index.php文件位于admin的public_html文件夹里面 然后你需要用以下代码替换它。
您的代码
重写
RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L,QSA]
可能会为你工作
RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ admin/index.php?/$1 [L,QSA]
答案 1 :(得分:0)
看起来您需要调整application / config / database.php以匹配您的apache服务器数据库设置。