Godaddy Installation Tips

robinbentley edited this page Mar 26, 2013 · 1 revision
Clone this wiki locally

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:

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:

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.