Another mod_rewrite question from noob |
[eluser]tiono[/eluser]
hello i'm noob in CI. Have problem with mod_rewrite to omit index.php from the URI. Oh ya please pardon me for my bad english. Before I started, I must mentioned that I already search this forum, read all the topic related with mod_rewrite problem, googling, run some simple test but still stuck in this problem. So here i am posting new topic about mod_rewrite. So let's start :cheese: My web server configuration is as followed Apache/2.0.52 (Win32) PHP/4.4.6 I have an admin page built using CI. It is my first CI applications. URL to access it is http://webadmin.testing.nature (I use apache name-based virtual hosting). The root path in windows is E:\wwwroot\testing\webadmin. I created one controller call packages for testing. When I point to http://webadmin.testing.nature I get CI welcome page. When I point to http://webadmin.testing.nature/index.php/packages I get list of available packages which are loaded from mysql db. Now I wish to omit index.php from URL so I can access http://webadmin.testing.nature/packages. Here is what I try to do to achive that. Set $config['index_page'] = ""; at file E:\wwwroot\testing\webadmin\system\application\config\config.php Create .htaccess file in folder E:\wwwroot\testing\webadmin. Content of the file is : Code: RewriteEngine on Then I try to access http://webadmin.testing.nature/packages and what i got is Code: Not Found I check phpinfo() and i can see mod_rewrite in loaded modules section. Code: Loaded Modules Then I tried to change .htaccess to Code: Options FollowSymLinks I tried testing if mod_rewrite working or not by following this tutorial i found. I place the rewrite.php file in folder E:\wwwroot\testing\webadmin\test and access http://webadmin.testing.nature/test/rewrite.php. When i click on link2.html link, then I get this error message Code: Not Found So I'm totally stuck now. What else should i check? Please help. Thanks in advance.
[eluser]tiono[/eluser]
I just tried follow solutions from http://codeigniter.com/wiki/Dreamhost_.htaccess/ but still no luck.
[eluser]tiono[/eluser]
Finally manage to make it works by changing "allowoverride none" to "AllowOverride FileInfo" at apache configuration file httpd.conf for my document root directory. |
Welcome Guest, Not a member yet? Register Sign In |