![]() |
CodeIgniter with cPanel. mod_rewrite problem - 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: CodeIgniter with cPanel. mod_rewrite problem (/showthread.php?tid=48056) |
CodeIgniter with cPanel. mod_rewrite problem - El Forum - 01-03-2012 [eluser]Unknown[/eluser] Hey guys, So I'm new to this cPanel stuff, my friend just hired me to program simple PHP so I decided to use CodeIgniter (which I'm very familiar with, especially on how the routing works). I tried uploading the CodeIgniter to the cPanel and weird thing is... my .htaccess doesn't work. Here's what's inside my .htaccess: Code: <IfModule mod_rewrite.c> I followed the user guide located here : http://codeigniter.com/wiki/mod_rewrite/ And my only problem is, I don't know how to do steps 3 & 4 on the stated link above. Can anyone help me out? :O I'm a total noob when it comes to things like this ![]() CodeIgniter with cPanel. mod_rewrite problem - El Forum - 05-09-2012 [eluser]Increazon[/eluser] Thanks thisleenoble. I had this problem now, on cPanel its failing. I will try your solution soon. My website CodeIgniter with cPanel. mod_rewrite problem - El Forum - 05-09-2012 [eluser]InsiteFX[/eluser] The easiest way to test a .htaccess file is to just place a string of text in it if its working you will get a server 500 Error CodeIgniter with cPanel. mod_rewrite problem - El Forum - 05-09-2012 [eluser]Increazon[/eluser] Its always working. But on cPanel hosting CodeIgniter gives index page every time when $config['uri_protocol'] = 'PATH_INFO'; Now i just opened new cPanel hosting with $config['uri_protocol'] = 'ORIG_PATH_INFO'; and its working. My htaccess: Code: RewriteEngine on I had tried a lot of hostings, and was thinking their mod_rewrite broken... But now i will start my first website in USA in english! CodeIgniter with cPanel. mod_rewrite problem - El Forum - 05-09-2012 [eluser]InsiteFX[/eluser] Try: Code: $config['uri_protocol'] = 'REQUEST_URI'; CodeIgniter with cPanel. mod_rewrite problem - El Forum - 05-09-2012 [eluser]weboap[/eluser] if it will help somebody, for some hostings the base is not always RewriteBase / you may want to check with your hosting to see if you have to add to your .htaccess RewriteBase /~username/ after the RewriteEngine on |