Welcome Guest, Not a member yet? Register   Sign In
Can't access cgi-bin, keep getting 404 error!
#1

[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
#2

[eluser]markanderson993[/eluser]
Anyone?
#3

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




Theme © iAndrew 2016 - Forum software by © MyBB