Welcome Guest, Not a member yet? Register   Sign In
.htaccess weird happenings!
#3

[eluser]Nevio[/eluser]
Code:
# Make index.php the directory index page
DirectoryIndex index.php

# CodeIgniter drop of "index.php"
RewriteEngine on
RewriteBase /
RewriteCond $1 !^(index\.php|public|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php/$1 [L,QSA]

# Block directory listings
Options -Indexes

This is the best I find out on web in my case well... Works on every platform correctly.


Messages In This Thread
.htaccess weird happenings! - by El Forum - 04-02-2009, 03:23 PM
.htaccess weird happenings! - by El Forum - 04-02-2009, 05:06 PM
.htaccess weird happenings! - by El Forum - 04-02-2009, 06:31 PM
.htaccess weird happenings! - by El Forum - 04-02-2009, 08:14 PM
.htaccess weird happenings! - by El Forum - 04-03-2009, 06:08 AM
.htaccess weird happenings! - by El Forum - 04-03-2009, 06:23 AM
.htaccess weird happenings! - by El Forum - 04-03-2009, 07:21 AM
.htaccess weird happenings! - by El Forum - 04-03-2009, 07:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB