Welcome Guest, Not a member yet? Register   Sign In
.htaccess Issues
#1

[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?
#2

[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)
#3

[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]




Theme © iAndrew 2016 - Forum software by © MyBB