Welcome Guest, Not a member yet? Register   Sign In
Code Igniter blocking access to /cgi-bin
#10

[eluser]Techie-Micheal[/eluser]
[quote author="yello" date="1205314023"]I appreciate your fast anwser but it does not seem to work.

Code:
Code:

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} !(dir1) [NC]
    RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>

That code works... when I try to access domain/dir1 it bypass the rewrite rule... but <b>as soon as I change it to cgi-bin</b> it does not work:
Code:
Code:

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} !(cgi-bin) [NC]
    RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>

I really don't know why it is not working since the only thing I changed is the dir name! Help![/quote] Why are you putting it in parenthesis? I don't think I've seen that before. Have you tried /cgi-bin instead of (cgi-bin)?


Messages In This Thread
Code Igniter blocking access to /cgi-bin - by El Forum - 03-09-2008, 10:29 PM
Code Igniter blocking access to /cgi-bin - by El Forum - 03-10-2008, 12:01 AM
Code Igniter blocking access to /cgi-bin - by El Forum - 03-10-2008, 12:38 PM
Code Igniter blocking access to /cgi-bin - by El Forum - 03-10-2008, 08:45 PM
Code Igniter blocking access to /cgi-bin - by El Forum - 03-10-2008, 09:09 PM
Code Igniter blocking access to /cgi-bin - by El Forum - 03-11-2008, 09:16 AM
Code Igniter blocking access to /cgi-bin - by El Forum - 03-11-2008, 01:16 PM
Code Igniter blocking access to /cgi-bin - by El Forum - 03-11-2008, 02:50 PM
Code Igniter blocking access to /cgi-bin - by El Forum - 03-11-2008, 10:27 PM
Code Igniter blocking access to /cgi-bin - by El Forum - 03-12-2008, 08:11 AM
Code Igniter blocking access to /cgi-bin - by El Forum - 03-12-2008, 11:38 AM
Code Igniter blocking access to /cgi-bin - by El Forum - 03-12-2008, 11:56 AM
Code Igniter blocking access to /cgi-bin - by El Forum - 03-12-2008, 07:44 PM
Code Igniter blocking access to /cgi-bin - by El Forum - 03-12-2008, 08:15 PM
Code Igniter blocking access to /cgi-bin - by El Forum - 03-13-2008, 06:16 PM
Code Igniter blocking access to /cgi-bin - by El Forum - 03-13-2008, 08:15 PM
Code Igniter blocking access to /cgi-bin - by El Forum - 03-13-2008, 08:54 PM
Code Igniter blocking access to /cgi-bin - by El Forum - 03-13-2008, 09:11 PM
Code Igniter blocking access to /cgi-bin - by El Forum - 03-13-2008, 09:27 PM
Code Igniter blocking access to /cgi-bin - by El Forum - 03-23-2008, 06:40 PM



Theme © iAndrew 2016 - Forum software by © MyBB