CodeIgniter Forums
.htaccess exception - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: .htaccess exception (/showthread.php?tid=46816)



.htaccess exception - El Forum - 11-16-2011

[eluser]Fireclave[/eluser]
Hey i have the following code in my htacces and this works fine.
Code:
RewriteEngine On
RewriteBase /

#RewriteCond %{HTTP_HOST} ^studio18-2.de$ [NC]
#RewriteRule ^(.*) http://www.domain.de/$1 [L,R=301]

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

But now i need to add an exception. The url /blog should not call a CI-Controller. /blog is my folder named for my Wordpressblog. How can i add an exception like

IF domain.de/blog/* -> not Redirect
OR
IF NOT domain.de/blog/* -> redirect