.htaccess - CodeIgniter 2.1.4 - Routing don't work in server -


I know there are many such issues but I have applied everything and I can not find the right way to do this Used to be. / P>

.htaccess is:! (. *)

  RewriteBase / NewWebsite RewriteCond% {REQUEST_FILENAME} RewriteEngine on -f RewriteCond% {REQUEST_FILENAME} -d RewriteRule ^ $ / Index.php / $ 1 [L] & lt; / IfModule & gt; & Lt; IfModule! Mod_rewrite.c & gt; ErrorDocument 404 / NewWebsite / terror.php & lt; / IfModule & gt;   

in config / config.php:

  $ config ['base_url'] = 'https://mydomain.com/NewWebsite/'; $ Config ['index_page'] = ''; $ Config ['uri_protocol'] = 'auto'; // I change it with REQUEST_URI and PATH_INFO but it does not work   

In the server, mod_rewrite has been enabled. In

localhost, everything is fine, but when I do it on the server went uploaded, the only index work (the first page you see), but when I move "around the web "If I want, I get a 404 error, no page found.

I'm going to show one. Controller and how I say it to change and ideas

  class Products_controller extends CI_Controller {public function index () {$ this- & gt; Load-> Helper ('url'); $ This- & gt; Load-> Assistant ('html'); $ This- & gt; Load-> ('Products.php') view; }}   

And the index, I call it:

  echo base_url ( 'Utpad_kantrolr / index');   

OR

  echo base_url ('product'); // I have config / routes.php --- & gt; $ Route ['product'] = "product_controller / index";   

Can anyone help me? What am I missing?

Thank you.

Sometimes, however, depends on .htaccess server hosting, but you can try this And tell us to replace your .htaccess code with the following code: (. *)

  RewriteBase / RewriteCond% {RewriteEngine on REQUEST_FILENAME} -f RewriteCond% {REQUEST_FILENAME} -d RewriteRule ^ index.php? / $ 1   

This is

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -