Welcome Guest, Not a member yet? Register   Sign In
CI + Leopard + htaccess - index.php = Impossible?
#11

[eluser]louis w[/eluser]
I am on 10.5.2 and it works fine.

My .htaccess is:
Code:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ "index.php/$1" [L]

I took out the / before index.php because I am not serving code igniter at the document root (my index.php is located at http://localhost/something/index.php).

Also, your index_page should be blank.

Code:
$config['index_page'] = "";
#12

[eluser]Mirage[/eluser]
Quote:
Code:
<IfModule !mod_rewrite.c>
    ErrorDocument 404 /index.php
</IfModule>

This has me believe that your mod_rewrite process isn't working right. I think what you're seeing is the Error document.

Try -
* Removing that directive and see what's going on then
* Turn on debugging in your mod_rewrite block and tail the output

Let us know what you find.

Cheers!
#13

[eluser]louis w[/eluser]
Try downloading and installing MAMP. This is what I use. Out of the box no customization w/ added htaccess.
#14

[eluser]Mirage[/eluser]
Well - that'd be kinda like shooting sparrows with a bazooka. :-)
#15

[eluser]louis w[/eluser]
But it kills em Smile

I guess I just do not like to deal with apache config. I used to do it locally, but find it so much easier to manage w/ MAMP for local dev. It was more of a longterm solution, which would also help out the current problem.
#16

[eluser]TheLoops[/eluser]
[quote author="CI Mirage" date="1211312910"]
Quote:
Code:
<IfModule !mod_rewrite.c>
    ErrorDocument 404 /index.php
</IfModule>

This has me believe that your mod_rewrite process isn't working right. I think what you're seeing is the Error document.

Try -
* Removing that directive and see what's going on then
* Turn on debugging in your mod_rewrite block and tail the output

Let us know what you find.

Cheers![/quote]
I removed it and am still getting the same (CI-generated) 404.
[quote author="louis w" date="1211313009"]Try downloading and installing MAMP. This is what I use. Out of the box no customization w/ added htaccess.[/quote]I'll try that.
#17

[eluser]TheLoops[/eluser]
Okay, I installed MAMP.

Now when accessing my local page without index.php I'm getting this:
Code:
An Error Was Encountered
Unable to select the specified database: mydb

I assume that MAMP reset my MySQL databases, hence the error. (luckily no serious stuff in there)

But at least the htaccess now seems to work properly.

Thanks a lot for your help! :coolsmirk:
#18

[eluser]louis w[/eluser]
You need to migrate your db. MAMP uses it's own instance of mysql and apache. Did you do that?
It comes pre-installed with phpMyAdmin which you an access from the start page.
#19

[eluser]Chris Newton[/eluser]
I use MAMP pro... oh man was it worth the money. Mamp by itself is fine too, just didn't have the full set of features I needed.
#20

[eluser]TheLoops[/eluser]
[quote author="louis w" date="1211339372"]You need to migrate your db. MAMP uses it's own instance of mysql and apache. Did you do that?[/quote]Nope, how do you do that?
(I'm also getting some error for a likely misconfiguration of my mysql socket,
which I had solved with my former installation of mysql.)




Theme © iAndrew 2016 - Forum software by © MyBB