• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unusual Situation: Non-CI subfolder within CI - how to access it directly?

#4
[eluser]danmontgomery[/eluser]
Code:
RewriteEngine On
RewriteBase /
RewriteCond $1 ^(file1|folder2|folder3)
RewriteRule ^(.*)$ - [PT,L]

# Rewrite all other URLs to index.php/URL
RewriteRule ^(.*)$ index.php/$1 [PT,L]

Where the first line is a list of files/folders not to rewrite... So, yours could look something like:

Code:
RewriteEngine On
RewriteBase /
RewriteCond $1 ^(index\.php|robots\.txt|favicon\.ico|admin)
RewriteRule ^(.*)$ - [PT,L]

# Rewrite all other URLs to index.php/URL
RewriteRule ^(.*)$ index.php/$1 [PT,L]

[edit]

^^ or that Wink


Messages In This Thread
Unusual Situation: Non-CI subfolder within CI - how to access it directly? - by El Forum - 04-26-2010, 03:00 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.