Quick & dirty: Dreamhost .htaccess |
[eluser]PHP Four[/eluser]
Hello Guys, I don't know whether its the right place to post this, but wanted to share this to those newbies who face problem in hosting CI in dreamhost and can't make the .htaccess work. Here goes the quick steps to follow for solving that: 1. Open system/application/config/config.php 2. Set Code: $config['index_page'] = ""; 3. Set Code: $config['uri_protocol'] = "REQUEST_URI"; 4. Add this .htaccess file to your server root (or in the folder where your files are located). Be sure to change the RewriteBase to match your folder location: Code: <IfModule mod_rewrite.c> 5. Thats it! Now enjoy CI in peace. Regards, Md Emran Hasan Co-founder & CTO Right Brain Solution
[eluser]Derek Allard[/eluser]
This is great, thanks. You might also want to add it to the wiki!
[eluser]Unknown[/eluser]
<strike>I followed the steps above but I get a 500 internal Server error every time. I tried changing the php version to 4 but with no joy. Any suggestions?</strike> scratch that works fine now ;-)
[eluser]llbbl[/eluser]
Code: RewriteEngine on Also works. See this thread.
[eluser]Uriptical[/eluser]
Using the instructions above, I'm still getting an Internal Server Error. My .htaccess file is as follows: Code: <IfModule mod_rewrite.c> My dreamhost username is 'calley'. The files are in a subdirectory called ofnirdev.uriptical.com, so the full path to the index file is: /home/calley/ofnirdev.uriptical.com/index.php I've tried putting the .htaccess file in both /home/calley and /home/calley/ofnirdev.uriptical.com Help would be much appreciated.
[eluser]Michael Wales[/eluser]
If index.php is found at /home/calley/ofnirdev.uriptical.com/index.php then: You would place the .htaccess file in /home/calley/ofnirdev.uriptical.com as well as change the RewriteBase to /home/calley/ofnirdev.uriptical.com.
[eluser]Uriptical[/eluser]
Thanks for your help Michael. Unfortunately the issue continues. The page that I'm trying to load is: http://ofnirdev.uriptical.com/user/join This works on my local Windows machine, using a different .htaccess file. The default controller is 'user', and join is function of that class which displays a form.
[eluser]MrWonderful[/eluser]
I like quick and dirty for dreamhost but here is what I need to do on dreamhost. I need to have a htaccess with these in it: Code: php_value upload_max_filesize 20M Dreamhost has a utility that appears to create them but then it talks about only being able to control it with WebDev, whatever that is. Any help here? -MrWonderful
[eluser]Nexus Rex[/eluser]
[quote author="PHP Four" date="1189261029"]Hello Guys, 3. Set Code: $config['uri_protocol'] = "REQUEST_URI"; This solved my problems on both MAMP and BlueHost. After spending hours messing with the .htaccess it was just that simple all along. Thank you! |
Welcome Guest, Not a member yet? Register Sign In |