CodeIgniter Forums

Full Version: How to give permission
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm a newbie to frameworks and i tried to use codeigniter but the page on the browser says i don't have permission to access it. How can i solve this? Thanks.
I don't know what server environment you run but there are 2 things to try

1 Check your file permissions. Make sure your files are visible to your server. The server may not have permission to serve them.

2 Maybe try changing your root .htaccess file to:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

see for details
This is really only an issue on linux systems, chmod +x 777 the entire CI directory. Once you know you got it working you can change it to 644 permissions and only set the relevant folders to 777 when and where you need.
I suggest change your .htaccess file .