CodeIgniter Forums

Full Version: .htaccess Issues
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

When I do the code in .htaccess that omits index.php from my urls, it disables me from visiting directories in the same directory as code igniter. How can I omit index.php while keeping directories viewable?

El Forum

I use the following in my .htaccess to access directories in my app directory.

RewriteCond $1 !^(index\.php|assets|images|css|uploads)

El Forum

This works for me. -f makes it check for a real file, -d is for directories
RewriteEngine On

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