-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Godaddy Installation Tips
Thank you to everyone who's posted on Godaddy installation issues.
Having just struggled with this issue myself, this seems to be the shortest path to proper performance on Godaddy. This is entirely based on other people's posts but, I didn't really see this all in one place so I thought I do just that.
In config.php:
$config['index_page'] = "index.php?";
$config['uri_protocol'] = "QUERY_STRING";
I've successfully implemented this on GoDaddy without using "index.php?" as the index page. This is helpful when using anchor() in the URL helper to create links. Even with htaccess removing the index.php, anchor() will still put in what you have set as an index page.
You should now be able to access everything as such:
http://yourdomain.com/index.php?controller/action/etc
Once you get to a point where you want to hide the 'index.php?' paste this into your .htaccess file:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?$1 [L]
You should now be able to access everything as such:
http://yourdomain.com/controller/action/etc
The .htaccess file must be in Unix LF only style. If you use Notepad or Wordpad and upload an .htaccess file in CR/LF style it won't work.
Hope this is helpful.