Welcome Guest, Not a member yet? Register   Sign In
Setup Netbeans & Xdebug for debugging CodeIgniter with Firefox [in under 15 minutes!] - Mac OSX
#2

[eluser]bretticus[/eluser]
Code:
RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1

index.php slash $1 is probably necessary because you changed:

Code:
// Original: $config['uri_protocol'] = "AUTO";
$config['uri_protocol'] = "PATH_INFO";

// Original: $config['enable_query_strings'] = FALSE;
$config['enable_query_strings'] = TRUE;

Typically, you'd have:

Code:
RewriteEngine on
//...
RewriteRule ^(.*)$ index.php/?$1

and Apache picks up the routing via querystring. Sans question mark and now you have to grab the URI with PATH_INFO. Hope that makes sense (and I hope I'm right!)

Also, this should work fine in Windows too (using WAMP Server, etc.) The only real difference is that the php.ini configuration might be slightly different with a different path. Windows users just need to make sure that xdebug is loaded. The last time I checked, Wamp Server made it REALLY easy to enable/disable PHP extensions.


Messages In This Thread
Setup Netbeans & Xdebug for debugging CodeIgniter with Firefox [in under 15 minutes!] - Mac OSX - by El Forum - 10-28-2010, 09:31 PM



Theme © iAndrew 2016 - Forum software by © MyBB