# Rewrite Exclude

**URL:** <https://www.ruby-forum.com/t/rewrite-exclude/226326>\
**Category:** NGINX\
**Created:** [July 12, 2012, 9:34am UTC](https://www.ruby-forum.com/t/rewrite-exclude/226326 "2012-07-12T09:34:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexander\_Meis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e68b1a/32.png) [@Alexander\_Meis](https://www.ruby-forum.com/u/Alexander_Meis)\
**Post date:** [July 12, 2012, 9:34am UTC](https://www.ruby-forum.com/t/rewrite-exclude/226326/1 "2012-07-12T09:34:26Z")

</div>

Hi,

i have the following rewrite rules

rewrite /files/documents/.\* /engine last;  
rewrite /templates/(.\*(css|js))$ /engine/backend  
…

if (!-e $request\_filename) {  
rewrite . /shopware.php last;  
}

i want everything under  
/foobarshopconnection/  
to be excludet from the rewrite so that it can be accessed.  
example: /foobarshopconnection/index.php/testcall/test/bartest

can someone tell me how to do that?

Thanks  
Alex
