Installing Dreamfactory in subdirectory / .htaccess issues


I’m trying to move my existing DF installation from a subdomain to a subdirectory, since I don’t have a wildcard TLS-certificate. This has been realized by using Apache 2.x Alias directives.

i.e. “” reroutes to “/opt/dreamfactory/platform/web/” instead of “/var/www-domain”. This works so far.

What happens now is that the local .htaccess-file then again reroutes “” to “” rather than “ api /launchpad/index.html”. I’m really not sure why this happens.

My Apache-config:

Alias /api "/opt/dreamfactory/platform/web/"
    <Directory "/opt/dreamfactory/platform/web/">
            Options Indexes FollowSymLinks MultiViews
            AllowOverride All
            Order allow,deny
            Allow from all
            Header set Access-Control-Allow-Origin "*"

And the DF .htaccess:

IndexIgnore */*
RewriteEngine on
RewriteBase /

#       Force SSL
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} ^(.+)\.cloud\.dreamfactory\.com$ [NC]
RewriteRule  (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L]

# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# otherwise forward it to index.php
RewriteRule ^.*$ /index.php [L]



Did you manage to sort this? I’m wanting to do the same thing.



(New account)

No, we wound up using a non-occupied port (which also works with TLS).