Welcome Guest, Not a member yet? Register   Sign In
.htaccess to CodeIgniter not work?
#1

[eluser]SaSa[/eluser]
why this .htaccess to CodeIgniter not work?


Code:
RewriteEngine on

RewriteRule ^([a-z0-9_-]+)\.html$ index.php/page/$1 [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|asset|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]

# this not work other work true
RewriteRule ^site/?$ site/web_design [L]

go to url .../site have error:
Code:
404 Page Not Found

The page you requested was not found.
#2

[eluser]SaSa[/eluser]
help me...
do must change this?
Code:
$config['uri_protocol']    = 'AUTO';
#3

[eluser]SaSa[/eluser]
I change of AUTO to PATH_INFO:
Code:
$config['uri_protocol']    = 'PATH_INFO';
that true...
Don't know find problem on the future or no!?




Theme © iAndrew 2016 - Forum software by © MyBB