Removing index.php from URL |
[eluser]Mohammed Zayan[/eluser]
I use this code in .htaccess file Code: <IfModule mod_rewrite.c> and make the base_url in the config file Code: $config['base_url'] = 'http://www.zayanit.com/zayan'; in autoload file Code: $autoload['helper'] = array("html", "url"); but I can't use any method in the controller unless I write index.php in URL like this http://www.zayanit.com/zayan/site/contact http://www.zayanit.com/zayan/index.php/site/contact Where is my wrong?
[eluser]Mohammed Zayan[/eluser]
If I want to put my code in the domain directly not in folder the base_url will be Code: $config['base_url'] = 'http://www.zayanit.com';
[eluser]CroNiX[/eluser]
Actually, base_url needs a trailing slash. Code: $config['base_url'] = 'http://www.zayanit.com/';
[eluser]Mohammed Zayan[/eluser]
Thank you but what should I put here Code: <IfModule mod_rewrite.c>
|
Welcome Guest, Not a member yet? Register Sign In |