I'm using a framework to create my website(codeigniter) by default the urls are like this:mysite.com/index.php?/etc/etc/etc.
And I'm trying to remove the index.php?, I tried to remove it by doing this(didn't work):

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?$1 [L]  

it's working on my localhost(when putting my website's files in the root directiory).

So, Is this issue associated with me or the hosting company(Go Daddy)?

2 Answers 2


I ran into this issue a few weeks ago. Even with mods to my .htaccess file, I was never able to accomplish the rewrite with a site being hosted on GoDaddy. They have a 'manual' way of doing it through their Control Panel which ended up working for me.


As far as I'm concerned, it got the job done, but it certainly was backwards....

  • The tool is used to redirect pages, and that's not what I exactly need, I need to clean my links, like this: mywebsite.com/index.php?/site to mywebsite.com/site
    – Abdulaziz
    May 30, 2012 at 17:53

Is your .htaccess file working at all? If no are you on a Linux or Windows server at GoDaddy? If Windows here is an article on switching to Linux which is very easy

  • I think it is working, because I get 404 when trying to access my website(which means it did effect my website).And yeah, I'm using Linux already.
    – Abdulaziz
    May 30, 2012 at 17:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.