# Pimcore Rewrite Rules to nginx

**URL:** <https://www.ruby-forum.com/t/pimcore-rewrite-rules-to-nginx/202764>\
**Category:** NGINX\
**Created:** [February 5, 2011, 10:43am UTC](https://www.ruby-forum.com/t/pimcore-rewrite-rules-to-nginx/202764 "2011-02-05T10:43:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [February 5, 2011, 10:43am UTC](https://www.ruby-forum.com/t/pimcore-rewrite-rules-to-nginx/202764/1 "2011-02-05T10:43:30Z")

</div>

Hello,

My big Problem are Rules like that. I’m not able to convert them.  
RewriteRule ^plugins/._/static._ - [PT,L]  
RewriteRule ^pimcore/static.\* - [PT,L]

It would be very kind if anyone could help me.

Best Regards

Here is the whole htacces.  
RewriteEngine On

# ASSETS: check if request method is GET (because of WebDAV) and if the

requested file (asset) exists on the filesystem, if both match, deliver  
the asset directly  
RewriteCond %{REQUEST\_METHOD} ^GET  
RewriteCond %{DOCUMENT\_ROOT}/website/var/assets%{REQUEST\_URI} -f  
RewriteRule ^(.\*)$ /website/var/assets%{REQUEST\_URI} [PT,L]

# allow access to thumnails & assets

RewriteRule ^website/var/tmp.\* - [PT,L]  
RewriteRule ^website/var/assets.\* - [PT,L]  
RewriteRule ^plugins/._/static._ - [PT,L]  
RewriteRule ^pimcore/static.\* - [PT,L]

# forbid the direct access to pimcore-internal data (eg. config-files,

…)  
RewriteRule ^website/var/._$ / [F,L]  
RewriteRule ^plugins/._$ / [F,L]  
RewriteRule ^pimcore/.\*$ / [F,L]

# basic zend-framework setup see:

[http://framework.zend.com/manual/en/zend.controller.html](http://framework.zend.com/manual/en/zend.controller.html)  
RewriteCond %{REQUEST\_FILENAME} -s [OR]  
RewriteCond %{REQUEST\_FILENAME} -l [OR]  
RewriteCond %{REQUEST\_FILENAME} -f  
RewriteRule ^._$ - [NC,L]  
RewriteRule ^._$ index.php [NC,L]

Posted at Nginx Forum:

> **[Pimcore Rewrite Rules to nginx](https://forum.nginx.org/read.php?2,172324,172324#msg-172324)**
>
> Hello, My big Problem are Rules like that. I'm not able to convert them. RewriteRule ^plugins/.\*/static.\* - \[PT,L\] RewriteRule ^pimcore/static.\* - \[PT,L\] It would be very kind if anyone could help me. Best Regards Here is the

---

<div class="post-metadata">

**Author:** ![Frosti](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/ec9cab/32.png) [@Frosti](https://www.ruby-forum.com/u/Frosti)\
**Post date:** [August 12, 2011, 9:25am UTC](https://www.ruby-forum.com/t/pimcore-rewrite-rules-to-nginx/202764/2 "2011-08-12T09:25:51Z")

</div>

Wondering if you have converted those pimcore rules in the meantime. If  
yes, I’d really appreciate if you could post them here as a reference.

Posted at Nginx Forum:

> **[Re: Pimcore Rewrite Rules to nginx](https://forum.nginx.org/read.php?2,172324,213720#msg-213720)**
>
> Hello, My big Problem are Rules like that. I'm not able to convert them. RewriteRule ^plugins/.\*/static.\* - \[PT,L\] RewriteRule ^pimcore/static.\* - \[PT,L\] It would be very kind if anyone could help me. Best Regards Here is the
