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

[eluser]philfishbein[/eluser]
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

[eluser]joakley77[/eluser]
I use the following in my .htaccess to access directories in my app directory.

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

El Forum

[eluser]pickupman[/eluser]
This works for me. -f makes it check for a real file, -d is for directories
Code:
RewriteEngine On

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