CodeIgniter Forums
htaccess issue - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: htaccess issue (/thread-19623.html)



htaccess issue - El Forum - 06-13-2009

[eluser]simon zhao[/eluser]
Hi All,

I got a very tricky issue with my htaccess file.

Following is my htaccess file.
RewriteEngine On
RewriteBase /
RewriteCond $1 !^(index\.php|images|css|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]
When I click on http://mydomain.com/order, it just show home page.the redirection doesnot happen.

But if I change into
RewriteEngine On
RewriteBase /
RewriteCond $1 !^(index\.php|images|css|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [R=301,L]
It'll redirect to http://mydomain.com/index.php/order, which is the page I want. But I really don't want index.php in URL.

I use justhost server. Can anyone please help me with this issue?


htaccess issue - El Forum - 06-13-2009

[eluser]simon zhao[/eluser]
Is there anyone who could help me? the server mod_rewrite is working, and for sure my htaccess file is correct. I just cannot find any reason.


htaccess issue - El Forum - 06-13-2009

[eluser]simon zhao[/eluser]
OK,I solve the problem myself. I need to change configure file
$config['uri_protocol'] = "REQUEST_URI";