0

I am installing a site made in PHP/CodeIgniter 2 on a hosting server which unfortunately has IIS running, which I have no experience in.

Nothing is working except the homepage, all other pages are returning 404 errors.

Adding index.php to the url returns 500 - Internal server error (I have the index page config set to '' in the config.php file)

I tried also creating a web.config file thinking the issue might be from the redirects, but adding a web.config file stops even the homepage from working, even if the web.config file added is completely empty.

Help really appreciated.

5
  • did you check out this post ? ellislab.com/forums/viewthread/91954 Commented Feb 22, 2013 at 17:44
  • Whenever I add a web.config file I start getting a 500 Internal Server error even on the homepage. Commented Feb 22, 2013 at 17:53
  • Then you have probably some errors in your web.config file. Check the error log. Commented Feb 22, 2013 at 17:54
  • I have been copying the web.config from several answers (here on stackoverflow), so I doubt I have an error in it. Also, I can't check the error log, I don't have remote access, I just have access via a control panel. Could it be the PHP version difference? But how come there are no PHP errors displaying then. Commented Feb 22, 2013 at 17:57
  • I managed to fix the 404 errors (Corrupted files from ftp upload...). However, the web.config file is still not working to remove index.php. I am creating the file in my codeigniter's root folder and I am using the code from stackoverflow.com/questions/9965124/… but still I get 500 internal server error on home page when I do so. Any tips? :S Commented Feb 22, 2013 at 18:11

2 Answers 2

1

Check if the hosting server has Re-write module installed in it, that could be your problem.

Sign up to request clarification or add additional context in comments.

Comments

0

Make sure you had installed URL Rewrite - http://www.iis.net/downloads/microsoft/url-rewrite

After you had installed the module you should able to see this icon (URL Rewrite) in your IIS Management. IIS - URL Rewrite

Comments

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.