php - Codeigniter routes not working since changing server -
i've put production codeigniter website , i'm getting strange behaviour i'm not able debug.
i'm using mod rewrite , pages points home (default route) unless use index.php in url.
example.
mywebsite.com/class/method -> points same page mywebsite.com/index.php/class/method -> points right page.
in config: $config['index_page'] = "";
this htaccess.
rewriteengine on rewritecond $1 !^(index\.php|lib|robots\.txt|upload) rewriterule ^(.*)$ /index.php/$1 [l]
website has been copied 1 server other 1:1 (with different db configuration). i'm getting desperate i've no idea what's happening here. mod_rewrite enabled on hte server.
thank help, you'll save me nervous breakdown.
after giving found issue.
the server didn't support $_server['path_info'] disabled in apache.
for quick fix can change setting auto in config.php
also read here: codeigniter $config['uri_protocol'] problem
Comments
Post a Comment