htaccess issue |
[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?
[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.
[eluser]simon zhao[/eluser]
OK,I solve the problem myself. I need to change configure file $config['uri_protocol'] = "REQUEST_URI"; |
Welcome Guest, Not a member yet? Register Sign In |