I had developed a website using Codeigniter. It was working good in localhost. When i hosted it and clicked on links i get "Internal Server Error".
Also i'm not able to see .htaccess files. Please tell me what i'm missing.
Works perfectly
Localhost:
$config['base_url'] = 'http://localhost/site/';
<a href="<?php echo base_url('welcome/page') ?>"> Welcome </a>
When clicked above link, it goes to below url and works perfectly
http://localhost/site/welcome/page
Hosted
Public Web Server (Error):
$config['base_url'] = 'http://www.mysite.com/';
<a href="<?php echo base_url('welcome/page') ?>"> Welcome </a>
When clicked above link, it goes to below url and gives an error
http://mysite.com/welcome/page
http://mysite.com/index.php/welcome/pageIf it works then, you haven't enabled rewrite module on server for htaccess to properly work..I can explain that if neededsite/part of the mod_rewrite to avoid theindex.php/. If you find it, then remove itIISthen you will needweb.configfile instead of.htaccess