Previously was using command ln for create virtual folder.
cd public
ln -s ../app/assets/ assets
~ public > ls -l
lrwxr-xr-x 1 carlosmontalvo admin 14 May 15 12:21 assets -> ../app/assets/
But I want to do with mod_rewrite
I tested with
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/?assets(.*) ../app/assets$1 [P] #here
RewriteRule ^(.*)$ index.php [QSA,L]
but this does not work
Tree Directory
├── app
│ └─ assets
│ ├── images
│ ├── javascripts
│ │ └── application.js
│ └── stylesheets
│ └── application.css
├── public
│ ├── 404.html
│ ├── 422.html
│ ├── 500.html
│ ├── assets -> ../app/assets/
│ ├── index.php
│ └── robots.txt
could help me? thanks