Welcome Guest, Not a member yet? Register   Sign In
$config['permitted_uri_chars'] doesn't work properly
#4

[eluser]parvus[/eluser]
Code:
# Options
Options -Multiviews
Options +FollowSymLinks
AddDefaultCharset UTF-8
#Enable mod rewrite
RewriteEngine On
#the location of the root of your site
#if writing for subdirectories, you would enter /subdirectory
RewriteBase /yourdirectory/

#Removes access to CodeIgniter system folder by users.
#Additionally this will allow you to create a System.php controller,
#previously this would not have been possible.
#'system' can be replaced if you have renamed your system folder.
RewriteCond %{REQUEST_URI} ^system.*
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

#This last condition enables access to the images and css
#folders, and the robots.txt file
RewriteCond $1 !^(index\.php|(.*)\.swf|(.*)\.jpg|(.*)\.txt|images|robots|css|docs|cache)
RewriteRule ^(.*)$ index.php?query=$1 [L]
RewriteRule ^(.*\.(html))$ $1
RewriteCond %{HTTP_HOST} !^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]


Messages In This Thread
$config['permitted_uri_chars'] doesn't work properly - by El Forum - 11-19-2011, 02:59 PM
$config['permitted_uri_chars'] doesn't work properly - by El Forum - 01-21-2012, 01:32 PM
$config['permitted_uri_chars'] doesn't work properly - by El Forum - 01-21-2012, 01:38 PM
$config['permitted_uri_chars'] doesn't work properly - by El Forum - 01-22-2012, 06:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB