404上传数据时,找不到与代码点火器相关的页面


404 Page Not Found related codeigniter when do upload data

当我试图在我的网站url中上传文件时,我收到了错误"404找不到页面"。

http://www.myurl.com/myfolderadmin/

但当我在localhost中做同样的事情时,它会很好地工作。

http://localhost/mycmsname/myfolderadmin/

这是我的控制器:

  function insert() {
$this->form_validation->set_message('required', '*column must be filled');
$this->form_validation->set_rules('judul', 'Judul', 'required');
$this->form_validation->set_rules('isi', 'Isi', 'required');
if ($this->form_validation->run() == FALSE) {
  $this->layout->addJs('ckeditor/ckeditor.js');
  $this->layout->addJs('js/admin/b267648789c30a07b0efa5bce7bdd9fe.js');
  $this->layout->view('myfolderadmin/subfolder/myview');
} else {
  $data = array(
      'title' => $this->input->post('judul'),
      'content' => $this->input->post('isi'),
  );
  $this->db->insert('newses', $data);
  $judul = $this->input->post('judul');
  $this->load->helper('file');
  $pictureFiles = get_filenames('picture_news');
  $this->db->select('*');
  $this->db->from('newses');
  $this->db->where('title', $judul);
  $query = $this->db->get();
  foreach ($query->result() as $row) {
    $id = $row->id;
    $post_date = $row->post_date;
  }
  $datapic = array(
      'pictureFiles' => $pictureFiles,
      'id' => $id,
      'post_date' => $post_date,
      'title' => $this->input->post('judul'),
      'content' => $this->input->post('isi'),
  );
  $this->layout->view('myfolderadmin/subfolder/myview', $datapic);
  //}
}

}

怎么了?我该怎么修?

谢谢你的回答。

清空yout.htaccess文件并添加以下
RewriteEngine on
RewriteCond $1 !^(index'.php|css|js|public|themes|captcha|robots|documents|'.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

希望这能帮助你。。。。