Problem removing index.php from url - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Problem removing index.php from url (/showthread.php?tid=22663) Pages:
1
2
|
Problem removing index.php from url - El Forum - 09-16-2009 [eluser]Ram2810[/eluser] Hello everyone... this problem is basic isue, i solved it about 6 months back but now i am facing the same problem ... nothing working this time... i need to remove index.php from url as it is becoming a problem while loading images ,css etc........ i followed the method given in user guide but its not working .... i went through lot of docs online nothing worked .... i thought its high time i consulted you guys.... please any one guide in this matter .... thank you Problem removing index.php from url - El Forum - 09-16-2009 [eluser]bretticus[/eluser] What have you tried thus far? What's your file structure? What do you have in .htaccess? Can you show us your config.php file? Problem removing index.php from url - El Forum - 09-17-2009 [eluser]Ram2810[/eluser] file floder structure www(public_html) application assets system index.php .htaccess .htacess file Code: RewriteEngine on config.php details Code: $config['base_url'] = "http://localhost/lotus_ci"; i hope you can help me out thankyou Problem removing index.php from url - El Forum - 09-17-2009 [eluser]daparky[/eluser] Try something like this in your HTACCESS file: Code: AddType x-mapp-php5 .php Or Code: RewriteEngine On Remember to put the directories of the things you want to unblock. Problem removing index.php from url - El Forum - 09-17-2009 [eluser]Ram2810[/eluser] am getting error 500 while uing the above mentioned method........... not solved yet Problem removing index.php from url - El Forum - 09-17-2009 [eluser]kurucu[/eluser] You need to set Code: $config['index_page'] = ""; Problem removing index.php from url - El Forum - 09-17-2009 [eluser]Ram2810[/eluser] even after setting $config['index_page']="" am getting 500 error Problem removing index.php from url - El Forum - 09-17-2009 [eluser]kurucu[/eluser] Then use your original .htaccess? When did the 500 error arrive? Also, are your file/folder permissions set correctly (might need to be 644/755 respectively)? Problem removing index.php from url - El Forum - 09-17-2009 [eluser]Ram2810[/eluser] my original .htacces file doesnt contain any code at all.I am testing on my local sytem OS is windows so file permissions is not a problem. I added following code to my .htaccess file Code: AddType x-mapp-php5 .php i did set the index file in config to null i.e "" after doing all these things i started getting 500 error ... What is wrong am i doing?? Problem removing index.php from url - El Forum - 09-17-2009 [eluser]wiredesignz[/eluser] Server 500 errors indicate mod_rewrite is not installed. |