Welcome Guest, Not a member yet? Register   Sign In
bypass index.php file
#1

[eluser]UnknownPlayer[/eluser]
Hi,
i need to bypass codeignter index.php file, becouse i cant use address like g=css in url, so i need to bypass index.php file, how can i do that?

Full address is domain.com/public/min/g=css it says that = is not permited, how can i do this ?
This is my .htaccess:
Code:
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} !^domain.com$ [NC]
    RewriteRule ^(.*)$ http://domain.com/$1 [L,R=301]
    RewriteCond %{REQUEST_URI} ^system.*
    RewriteRule ^(.*)$ /index.php?/$1 [L]

    RewriteCond %{REQUEST_URI} ^application.*
    RewriteRule ^(.*)$ /index.php?/$1 [L]

    #Checks to see if the user is attempting to access a valid file,
    #such as an image or css document, if this isn't true it sends the
    #request to index.php
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond $1 !^(index\.php|images|robots\.txt|css)
    RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
#2

[eluser]Aken[/eluser]
What is creating the error, CI or your server? Why do you have a file path with an = sign in it, anyway? You don't usually want symbols in your file paths outside of the norms.

That if it was detected as a file, that .htaccess should not redirect it.
#3

[eluser]UnknownPlayer[/eluser]
CI blocks that character, but i need it for minified version.
I need to set in htaccess to that path don't go on index.php or ?
#4

[eluser]InsiteFX[/eluser]
./application/config/config.php
Code:
$config['uri_protocol'] = 'PATH_INFO';

$config['allow_get_array'] = TRUE;

$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-&?=';

Make sure you check all inputed data using xss_clean etc;
#5

[eluser]UnknownPlayer[/eluser]
Yes, but i don't think it is good security way for doing this or i'm wrong?
I thought with htaccess that can be done?




Theme © iAndrew 2016 - Forum software by © MyBB