CodeIgniter Forums
Can't access cgi-bin, keep getting 404 error! - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Can't access cgi-bin, keep getting 404 error! (/showthread.php?tid=15377)



Can't access cgi-bin, keep getting 404 error! - El Forum - 02-02-2009

[eluser]markanderson993[/eluser]
Hello there CodeIgniter experts! I have search everywhere for information regarding cgi-bin access in the .htaccess file but nothing has been able to help me.

I would like to include a .cgi file inside one of my views using a
Code:
<?php inlcude() ?>
function but when I try I get a 404 error. I believe this is caused by my .htaccess file placed in my root directory which looks like this:

Code:
<IfModule mod_rewrite.c>
RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php)
RewriteRule ^(.+)$ index.php?$1 [L]
</IfModule>

Does anyone know how to edit it in order for it to allow file access to .cgi files in the cgi-bin?

Any help would be GREATLY appreciated! Thank you!

- Pianoman933


Can't access cgi-bin, keep getting 404 error! - El Forum - 02-03-2009

[eluser]markanderson993[/eluser]
Anyone?


Can't access cgi-bin, keep getting 404 error! - El Forum - 02-03-2009

[eluser]Adi Setiawan[/eluser]
change RewriteCond to
RewriteCond $1 !^(index\.php|cgi-bin)