php - route codeigniter not working -


i have problem routes file in codeigniter. on wamp, routes run correctly. but, on server (shared hosting), routes doesn't run.

my homepage in fr folder. controller index. default controller 'fr/index'.

$route['default_controller'] = 'fr/index'; $route['404_override'] = '';  

when write www.domainname.tld, "file not found." without css style. in source code have

1 file not found.
2

while when write www.domainname.tld/aaaa (404 error), have 404 error :

<!doctype html> <html lang="en"> <head> <title>404 page not found</title> <style type="text/css">  ::selection{ background-color: #e13300; color: white; } ::moz-selection{ background-color: #e13300; color: white; } ::webkit-selection{ background-color: #e13300; color: white; }  body {     background-color: #fff;     margin: 40px;     font: 13px/20px normal helvetica, arial, sans-serif;     color: #4f5155; }  {     color: #003399;     background-color: transparent;     font-weight: normal; }  h1 {     color: #444;     background-color: transparent;     border-bottom: 1px solid #d0d0d0;     font-size: 19px;     font-weight: normal;     margin: 0 0 14px 0;     padding: 14px 15px 10px 15px; }  code {     font-family: consolas, monaco, courier new, courier, monospace;     font-size: 12px;     background-color: #f9f9f9;     border: 1px solid #d0d0d0;     color: #002166;     display: block;     margin: 14px 0 14px 0;     padding: 12px 10px 12px 10px; }  #container {     margin: 10px;     border: 1px solid #d0d0d0;     -webkit-box-shadow: 0 0 8px #d0d0d0; }  p {     margin: 12px 15px 12px 15px; } </style> </head> <body>     <div id="container">         <h1>404 page not found</h1>         <p>the page requested not found.</p>    </div> </body> </html> 

my .htaccess run correctly :

options +followsymlinks rewriteengine on  #sub-dir e.g: /cmsms #rewritebase / # # 301 redirect requests don't contain dot or trailing slash # include trailing slash rewritecond %{request_uri} !/$ rewritecond %{request_uri} !\. rewriterule ^(.*) %{request_uri}/ [r=301,l] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^(.+)$ index.php?page=$1 [qsa] # empêche la visualisation de l’arborescence, n’a rien à voir avec le masquage du « index.php ». options -indexes  # active le module de réécriture d’url. rewriteengine on  # toutes les url qui ne correspondent pas à ces masques sont réécrites. rewritecond $1 !^(index.php|assets/|robots.txt)  # toutes les autres url vont être redirigées vers le fichier index.php.  rewriterule ^(.*)$ index.php/$1 [l] 

i think hosting problem because on wamp, instruction run correctly not on server.

have idea ?

thank answers.

which version of codeigniter running on? if in v3 check out file name of controller , model ...if starting letter of files not capital in letter rename starting letter of model , controller filename must in capital


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -