Welcome Guest, Not a member yet? Register   Sign In
Still with index.php problem
#11

[eluser]tpiscotti[/eluser]
Thanks! Just checked it out.

The crazy thing is I tried ALL of those things. And I have in fact checked (ad nauseum) that mod_rewrite is definitely enabled. The hash mark is removed in httpd.conf.

I ran phpInfo() and it shows that mod_rewrite is one of the loaded modules.

I revised my .htaccess file (which is located in the same location as my index.php bootstrap file for CI) to try the same code you suggested in your post. Also to no avail.

I've even uninstalled PHP, double-checked that there weren't any PHP installation or config files, then reinstalled it.

Are there any known issues with particular versions of Apache and/or PHP? I'm using Apache 2.2.11 and PHP 5.2.8 (both should be latest versions).

By the way, thank you again to everyone offering suggestions!! I appreciate it!

Best,
Tony
#12

[eluser]Colin Williams[/eluser]
You should be able to generate a 500 error with something like this in your htaccess

Code:
Imcrazywillcause500

If you don't get a 500, your htaccess isn't "running." In that case, there should be another setting somewhere that will enable htaccess. I believe it is AllowOverrides. I typically do this in a vhost setting:

Code:
<VirtualHost *:80>
    DocumentRoot C:/local/htdocs
    ServerName localhost
    
<Directory "C:/local/htdocs">
    Options Indexes FollowSymLinks Includes ExecCGI
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>
</VirtualHost>
#13

[eluser]tpiscotti[/eluser]
I tried adding that to the file...just by itself as well as intermingled in various areas of the Rewrite code I already had in there but still getting only 404 not found error.

Is there another setting elsewhere altogether that isn't allowing .htaccess to work? I mean technically it should work without a .htaccess file if I have mod_rewrite enabled already in httpd.conf. But now I can't even tell if the .htaccess file is being recognized at all to override any of the httpd.conf settings.

I'm also Google-ing to find answers to detecting the presence of .htaccess file, but if you have any suggestions on that I really appreciate it!
#14

[eluser]Colin Williams[/eluser]
See above. You should have AllowOverride All for your directory. You can do this in any config file (httpd.conf will work)

Code:
<Directory "C:/local/htdocs">
    AllowOverride All
</Directory>

Try that at the least. Your httpd.conf should already have a directive for your doc root, so just modify the one that's there.

http://httpd.apache.org/docs/2.0/mod/cor...owoverride

Quote:When this directive is set to None, then .htaccess files are completely ignored. In this case, the server will not even attempt to read .htaccess files in the filesystem.

When this directive is set to All, then any directive which has the .htaccess Context is allowed in .htaccess files.
#15

[eluser]onecode[/eluser]
PROBLEM SOLVED!! :coolsmile:

[quote author="onecode" date="1233094244"]

Code:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

[/quote]

I try all method just to finish this work (but, of course i dont delete the actual file --&gt;index.php :cheese: ), and now solved. I just change my htaccess code, with this one:

Code:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /ci_rss/index.php/$1 [L]

i just add my site root :lol: ...I try this way in localhost and 100% success, but i dont know if in shared hosting....i hope there are no trouble if in shared hosting or maybe any suggestion? :down:

Thank you very much everyone.... :coolsmile:
#16

[eluser]Colin Williams[/eluser]
We're working on a bit of a different problem with tpiscotti, but happy that you got yours working, onecode. tpiscotti doesn't appear to even have his .htaccess files running correctly.
#17

[eluser]tpiscotti[/eluser]
OK. Here's where I'm at now. I do have AllowOverride All set and I have it set to a <Directory> block specific to the location of the CI site I'm working on, so it looks like:

Code:
<Directory "C:/Apache/htdocs/blogtest">
    Options Indexes FollowSymLinks Includes ExecCGI
    AllowOverride All
    Order deny,allow
    Deny from all
</Directory>

I WAS able to generate the internal server 500 error so it seems to be recognizing .htaccess now. (Phew!)

I then removed the bogus line of code you suggested that caused the 500 error and now, instead of getting the 404 Not Found error I'm now getting the 403 Forbidden error. As long as .htaccess is getting recognized now, I'm fine with that. But I'm not sure what other settings to check at this point to address the 403 error.

My config.php file has the following settings near the top (in case anyone might ask how I have these settings set):

Code:
$config['base_url']    = "http://localhost:81/blogtest/";
...
$config['index_page'] = "";
...
$config['uri_protocol']    = "AUTO";

I also tried all the other settings for 'uri_protocol' but none seemed to trigger a change.

Onecode, I also tried the same approach you did in my .htaccess file but it didn't work for me (I'm glad you were able to get it resolved though!).

What is causing the 403 Forbidden error?

Thank you!!
#18

[eluser]onecode[/eluser]
[quote author="tpiscotti" date="1233188004"]
Code:
<Directory "C:/Apache/htdocs/blogtest">
    Options Indexes FollowSymLinks Includes ExecCGI
    AllowOverride All
    Order deny,allow
    Deny from all
</Directory>

Code:
$config['base_url']    = "http://localhost:81/blogtest/";
...
$config['index_page'] = "";
...
$config['uri_protocol']    = "AUTO";

I also tried all the other settings for 'uri_protocol' but none seemed to trigger a change.

Onecode, I also tried the same approach you did in my .htaccess file but it didn't work for me (I'm glad you were able to get it resolved though!).

What is causing the 403 Forbidden error?

Thank you!![/quote]

Mm..im not CI master, but after im installing ci, i never touch that file, i mean httpd file, and i never change any configuration for my localhost server (because i dont understand with all that :red: )...For first time, i just make my htaccess in root, then i change my config and routes.php..

This is my setting for config.php :
$config['base_url'] = "http://localhost/ci_rss/";

$config['url_suffix'] = ".html";

/* all default setting */

And for routes.php :
$route['default_controller'] = "ci_rss";
/* all default setting */

Thats all what im doing for solving this problem...And all working now...I have make my own library, my own helper, and nothing error (not yet maybe :lol: ) ...I hope what im doing with my ci setting can help you tpiscotti

I'm using ApacheTriad for my localhost server, PHP 5.0, and installed in Windows XP SP2
#19

[eluser]tpiscotti[/eluser]
Ok. Another update. I just updated my <Directory> from:

Code:
<Directory "C:/Apache/htdocs/blogtest">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>

to:

Code:
<Directory "C:/Apache/htdocs/blogtest">
Options Indexes Includes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>

...(changed that first line in the block)...and IT WORKS NOW!!!

I found the code on the following page towards the bottom under item #4 (after having already tried everything else above that):

http://codeigniter.com/wiki/mod_rewrite/

I'm not sure what side effect that particular setting could have, but since it's my local development area vs a shared hosting area (which is already working properly anyway) I'm not terribly concerned.

Thank you all for your assistance and patience!!!!!!

I have another thread I've been participating in today for the one other issue I'm experiencing, in case anyone from this thread might be able to help with that one as well:
http://ellislab.com/forums/viewthread/87750/

Thanks again!!
- Tony
#20

[eluser]Colin Williams[/eluser]
Oh yeah! You probably don't need ExecCGI. That probably caused the 403 (somehow).

Glad you're up and running, Tony.




Theme © iAndrew 2016 - Forum software by © MyBB