0

I have Code Igniter based site and I have it on ubuntu 12.04 in /var/www/mysite folder My ubuntu serves as a server so I access my site trough other computer, but both computers are on LAN network. I use http://xxx.yyy.zzz.ttt/mysite url to access it.

The problem I have is that I cannot use url without "index.php" in it. So I have http://xxx.yyy.zzz.ttt/mysite/index.php/phpinfo To acces my controller phpinfo instead of http://xxx.yyy.zzz.ttt/mysite/phpinfo

I have cheked well that mod_revrite works well with this here And also checked that the folder, files and subfolders in mysite have all 777 file permissions.

I also added all necessary rules in .htaccess file but still no success

Any idea what is causing this.

6
  • What do you have in .htaccess (for DirectoryIndex)? Have you restarted the web server? Commented Jul 20, 2012 at 14:05
  • Well there is no section DirectoryIndex. Commented Jul 20, 2012 at 14:07
  • Have you read the documentation regarding removing index.php. Once you've added your .htaccess file, you will need to tell CI to stop adding index.php to the links. Commented Jul 20, 2012 at 14:07
  • codeigniter.com/user_guide/general/urls.html Commented Jul 20, 2012 at 14:08
  • Yeah I copied all the lines for removing index.php from url but still the same. Commented Jul 20, 2012 at 14:17

2 Answers 2

1

The first thing I would do is make sure you followed all of the CI instructions.

It may be that you did not update the config file to be a blank string rather than using index.php

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

2 Comments

You mean this $config['index_page'] = ''; It is empty
Like Keaton said above, have you restarted your apache?
0

Do you know what was the issue.

The default file in sites-available had option

AllowOverride None for /var/wwww

I set it to All and it worked out. :)

cheers :)

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.