• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Quick & dirty: Dreamhost .htaccess

#1
[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>
    RewriteEngine On
    RewriteBase /rbs/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>
    # If we don't have mod_rewrite installed, all 404's
    # can be sent to index.php, and everything works as normal.
    # Submitted by: ElliotHaughin

    ErrorDocument 404 /index.php
</IfModule>

5. Thats it! Now enjoy CI in peace.

Regards,

Md Emran Hasan
Co-founder & CTO
Right Brain Solution


Messages In This Thread
Quick & dirty: Dreamhost .htaccess - by El Forum - 09-08-2007, 03:17 AM
Quick & dirty: Dreamhost .htaccess - by El Forum - 09-08-2007, 02:30 PM
Quick & dirty: Dreamhost .htaccess - by El Forum - 09-08-2007, 03:06 PM
Quick & dirty: Dreamhost .htaccess - by El Forum - 09-26-2007, 04:06 AM
Quick & dirty: Dreamhost .htaccess - by El Forum - 11-03-2007, 02:11 PM
Quick & dirty: Dreamhost .htaccess - by El Forum - 06-05-2008, 06:08 AM
Quick & dirty: Dreamhost .htaccess - by El Forum - 06-05-2008, 06:16 AM
Quick & dirty: Dreamhost .htaccess - by El Forum - 06-05-2008, 05:15 PM
Quick & dirty: Dreamhost .htaccess - by El Forum - 02-12-2009, 07:04 AM
Quick & dirty: Dreamhost .htaccess - by El Forum - 05-29-2009, 03:08 AM
Quick & dirty: Dreamhost .htaccess - by El Forum - 10-22-2010, 08:42 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.