Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/meteor/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 在codeigniter中打开复制我的$服务器_Php_.htaccess_Codeigniter_Url Rewriting - Fatal编程技术网

Php 在codeigniter中打开复制我的$服务器

Php 在codeigniter中打开复制我的$服务器,php,.htaccess,codeigniter,url-rewriting,Php,.htaccess,Codeigniter,Url Rewriting,我使用了最新版本的codeigniter,通过修改将index.php隐藏在url中 这是我的config.php: $config['base_url'] = 'mediamax.toto.local/front/'; $config['index_page'] = ''; $config['uri_protocol'] = 'AUTO'; 这是我文件夹根目录下的.htaccess: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f R

我使用了最新版本的codeigniter,通过修改将index.php隐藏在url中

这是我的config.php:

$config['base_url'] = 'mediamax.toto.local/front/';
$config['index_page'] = '';
$config['uri_protocol'] = 'AUTO';
这是我文件夹根目录下的.htaccess:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L] 
在我看来,我这样称呼我的表格:

echo form_open('index');
index是我的控制器前端的方法,这是我提交表单时在浏览器中显示的url:

谢谢你的帮助。

改变

$config['base_url'] = 'mediamax.toto.local/front/';
致:


希望这有帮助

你的问题是什么?太好了!!谢谢
$config['base_url'] = 'http://mediamax.toto.local/front/';