Codeigniter 404页面问题与篝火

时间:2018-03-04 09:18:08

标签: php codeigniter wamp bonfire

我在localhost上的codeigniter中遇到了404页面问题。

我还在appache上设置了rewrite_mode enable,如果我禁用了rewrite_mode,则会给出500错误。 还要设置.htaccess文件。

  DirectoryIndex index.php

# Rewrite engine
RewriteEngine On

# condition with escaping special chars
RewriteCond $1 !^(index\.php|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php/$1 [L,QSA]

Appache hhtpd.conf文件:

<VirtualHost *:80> 
DocumentRoot "C:/wamp/www/newpro/public" 
ServerName localhost 
</VirtualHost>

请帮我一样。 感谢。

0 个答案:

没有答案
相关问题