Showing posts with label exclude. Show all posts
Showing posts with label exclude. Show all posts

Sunday, June 3, 2012

.htaccess mod_rewrite - how to exclude directory from rewrite rule


I have 8 lines of rewrite rules in my .htaccess file. I need to exclude two physical directories on my server from these rules, so they can become accessible. For now all requests are sent to index.php file.

Exclude .svn directories from grep


When I grep my Subversion working copy directory, the results include a lot of files from the .svn directories. Is it possible to recursively grep a directory, but exclude all results from .svn directories?