Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/229.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
在此服务器上找不到请求的URL/phpws/project_priyanka_3079/welcome/register_Php_.htaccess_Codeigniter_Frameworks - Fatal编程技术网

在此服务器上找不到请求的URL/phpws/project_priyanka_3079/welcome/register

在此服务器上找不到请求的URL/phpws/project_priyanka_3079/welcome/register,php,.htaccess,codeigniter,frameworks,Php,.htaccess,Codeigniter,Frameworks,我刚从CodeIgniter开始,URL的haad问题尝试了StackOverflow的不同解决方案,但它们对我不起作用 我的档案如下 欢迎控制器 public function index() { $this->load->view('welcome_message'); } public function register(){ echo 'register'; } 形式作用 <form role="

我刚从CodeIgniter开始,URL的haad问题尝试了StackOverflow的不同解决方案,但它们对我不起作用 我的档案如下

欢迎控制器

    public function index()
    {
        $this->load->view('welcome_message');
    }
    public function register(){
        echo 'register';
    }
形式作用

<form role="form" method="post" action="<?php echo base_url('welcome/register'); ?>">

尝试将
index_页面
config设置为false/empty(
codeigniter/application/config/config.php
):

$config['index_page']='';
并将
/index.php/$1
更改为
index.php/$1
codeigniter/.htaccess
):

RewriteEngine on

# Route home page to "locked out" special front page by uncommenting next lines
# RewriteRule ^index.htm index.html [L]
# RewriteRule ^$ index.html [L]

# Send all running pages except index.php, robots.txt and the user guide to index.php

RewriteCond $1 !^(index\.php|images|robots\.txt|user_guide)
RewriteRule ^(.*)$ /index.php/$1 [L]
RewriteRule ^(.*)$ index.php/$1 [L]