• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Remove index.php without setting $config['index_page'] to empty string [SOLVED]

#11
[eluser]cseguin[/eluser]
I meant .htaccess and index.php, did not see entry #6

#12
[eluser]cseguin[/eluser]
[code]$config['uri_protocol'] = "PATH_INFO";[code]

#13
[eluser]cseguin[/eluser]
tried:

Quote:
Code:
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ index.php?/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]

it is still returning 404s

#14
[eluser]bretticus[/eluser]
Try QUERY_STRING with my suggestion.

#15
[eluser]bretticus[/eluser]
My next suggestion would be to try using a virtual host in case global server setting are wonking your rewrites somehow. For example, are you even allowing the directives you call in your .htaccess file?

What is your operating system? It appears you are using Apache2. Correct? Are you using a pre-built stack: MAMP for Mac OSX, WAMP Server for Windows. etc.?

See AllowOverride in Apache manual.

#16
[eluser]danmontgomery[/eluser]
You are getting getting Apache 404s, right? Not Codeigniter 404s?

#17
[eluser]cseguin[/eluser]
Hi bretticus,

thanks a lot for your time, I'll try your suggestions right now.

I'm running a Mac OX 10.6.2 and I'm using the apache 2.0 that comes with it. CI is 1.7.1


Hi Noctrum,
Quote:You are getting getting Apache 404s, right? Not Codeigniter 404s?


apache I suppose, this the html generated:
Code:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
&lt;html&gt;&lt;head>
&lt;title&gt;404 Not Found&lt;/title&gt;
&lt;/head&gt;&lt;body>
<h1>Not Found</h1>
<p>The requested URL /item/2 was not found on this server.</p>
&lt;/body&gt;&lt;/html>

#18
[eluser]cseguin[/eluser]
Hi bretticus,

you are probably right, this is on my httpd.conf

<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>

#19
[eluser]bretticus[/eluser]
[quote author="noctrum" date="1280964383"]You are getting getting Apache 404s, right? Not Codeigniter 404s?[/quote]

Thanks @noctrum, I will add that to my future preliminary questions when dealing with this. Duh! Smile

#20
[eluser]bretticus[/eluser]
Try changing AllowOverride:

Code:
AllowOverride All

You are definitely getting apache 404 errors (means rewrite is not working because AllowOverride is set to None. Apache won't even read .htaccess files when configured like this.)


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.