Welcome Guest, Not a member yet? Register   Sign In
how to remove index.php from my url in codeigniter
#1

[eluser]mehdy[/eluser]
i remove index.php from my config file and i have run my rewrite_module in apache(2.2.11) and my .htaccess file is

Code:
RewriteEngine on RewriteCond $1 !^(index.php|images|captcha|css|js|robots.txt) RewriteRule ^(.*)$ /index.php/$1 [L]

now whenever i clik any link it show that request url don't found . so please tell me what is the problem ?
#2

[eluser]pistolPete[/eluser]
Do you get a Apache error or a CodeIgniter one?

Have a look at http://codeigniter.com/wiki/mod_rewrite/.

Try adding a question mark:
Code:
...
RewriteRule ^(.*)$ index.php?/$1 [L]
#3

[eluser]mehdy[/eluser]
thank you , yes i have put ? after index.php still no change ,
#4

[eluser]Aken[/eluser]
It's pretty much one of two things: Incorrectly-written .htaccess file, or the URI protocol isn't compatible with your server set up.

I'd recommend using the .htaccess example from the wiki link pistolPete posted. It works great for myself, and is a more thorough / better written than what you're currently using.
#5

[eluser]Muhamad Perdiyansyah[/eluser]
hi.




Theme © iAndrew 2016 - Forum software by © MyBB