How do I install CakePHP 3.3 in a subdirectory? So far, I’ve only found that I should set my htaccess in app2/.htaccess, but I’ve tried every path I can think of, but only get 500 error.Overview of how it should end up:
User goes to www.example.com and gets my ‘app1’ CakePHP 3 application. User goes to www.example.com/app2 and gets my ‘app2’ application (standard PHP for now, but eventually another Cake app).
My .htacess file:
RewriteEngine on
RewriteBase /app2
RewriteRule ^$ webroot/ [L]
RewriteRule (.*) webroot/$1 [L]
app2/webroot/.htacess file:
RewriteEngine On
RewriteBase /app2
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
What am I missing? Are there other steps I need to take? Is what I’ve done so far incorrect?