在此服务器上找不到请求的URL/phpws/project_priyanka_3079/welcome/register
我刚从CodeIgniter开始,URL的haad问题尝试了StackOverflow的不同解决方案,但它们对我不起作用 我的档案如下 欢迎控制器在此服务器上找不到请求的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="
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]