-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Dreamhost .htaccess
World Wide Web Server edited this page Jul 4, 2012
·
14 revisions
[h3]Solution 1[/h3] Create a file called .htaccess, paste the following code into the document and upload to your server at the root web directory.
[code]RewriteEngine on
RewriteCond
[b]NOTE: The previous solution also works for ICDSoft hosting.[/b] [h3]Solution 2[/h3]
- Open system/application/config/config.php
- Set [code]$config['index_page'] = ""; [/code]
- Set [code]$config['uri_protocol'] = "REQUEST_URI";[/code]
- 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] RewriteEngine On RewriteBase /rbs/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L]
<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
[/code]