Multiple Framworks within a separate domain in folders

0

I have a framework, where I want to split it into several frameworks (MVC) per folder at the root of the domain. In the domain root I do not have any files, there are folders where I have a file in the root of each folder a .htaccess like this:

RewriteEngine on
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*)$ index.php?url=$1

I would like that in my www.mydomain.com you have several folders, for example:

  

www.meudominio.com.br/pasta1
  www.mydominio.com.br/pasta2
  www.myspace.com/pasta3

And, in each folder (eg folder1, folder2, folder3) has a .htaccess file to load a framework separately with another file structure with the index.php initialization file set and other folder structure ( framework)

  
  • app
      - controllers
      - models
      - views
  •   
  • system
      - helpers
  •   
  • web
  •   

.htaccess
  index.php

    
asked by anonymous 01.07.2017 / 14:12

0 answers