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

[eluser]ssharp[/eluser]
I need help in figuring out how to write an inclusive .htaccess file instead of exclusive.

For example, I want specific directories to work with CodeIgnitor. If they aren't explicitly stated in the .htaccess file, I don't want them to run through CodeIgnitor.

The example .htaccess file that CodeIgnitor has rules for EXCLUDING certain directors (css, js, images, etc.). I want this to work the opposite way, I want to give it directories that will be sent to CodeIgnitor.

Does this make sense?

Any help is appreciated - thanks!
#2

[eluser]Phil Sturgeon[/eluser]
This is not tested but im pretty certain if you take out the exclamation mark it will work how you expect.

Quote:RewriteEngine on
RewriteCond $1 ^(index\.php|images|css|uploads|jscripts|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]




Theme © iAndrew 2016 - Forum software by © MyBB