jeudi 23 juin 2016

Change root to public inside sub-folder

I work in an agency and I created a subdomain in order to show our customers some code examples we can provide, all my applications are made in Laravel 5.1, and each application is being placed in a sub-directory, like this:

scripts.domain.com
   /image-filter
      /public
   /facebook-image-app
      /public
   /twitter-integration
      /public
   /instagram-wall
      /public

I need to point the root into the public folder...

I've tried this, but it didn't work as expected:

RewriteEngine on
RewriteCond %{REQUEST_URI} !public/
RewriteCond %{HTTP_HOST} ^http://ift.tt/28Qplr6 [NC,OR]
RewriteCond %{HTTP_HOST} ^http://ift.tt/28SrHbJ
RewriteRule (.*) /public/$1 [L]

Any idea on this?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire