CodeIgniter Forums
Server problem - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9)
+--- Thread: Server problem (/showthread.php?tid=62705)



Server problem - eliedor - 08-17-2015

Hi !

I have a problem with codeigniter on my server :

On WAMP, routes file is ok.
Or on server, routes doesn't run.

My instruction is : $route['default_controller'] = 'fr/index';

I think it's a server problem but I don't know where ? (I have a dedicated server at OVH)

Can you help me please. Sorry for my bad english.


RE: Server problem - eliedor - 08-18-2015

Please help me. It's impossible to access to website on my homepage. I must write domName.tld/fr/index to access on my homepage.

With Wamp, It's run correctly but not on my server. Why ?


RE: Server problem - Paradinight - 08-22-2015

You codeigniter project is in the fr folder? Show me you folder structure.


RE: Server problem - phplaw - 08-22-2015

Maybe the issue by htaccess, It should be have
Code:
./
before
Code:
index.php/$1
Like this:
Code:
RewriteRule ^(.*)$ ./index.php/$1 [L]



RE: Server problem - jLinux - 08-23-2015

(08-22-2015, 10:19 PM)phplaw Wrote: Maybe the issue by htaccess, It should be have
Code:
./
before
Code:
index.php/$1
Like this:
Code:
RewriteRule ^(.*)$ ./index.php/$1 [L]

Actually, assuming this is in the root of the web app, it should be / to start an absolute path, not ./