Occasionally you may want to retrieve content from a subfolder, for example
www. This is used by some PHP
frameworks, including Nette.
For this setting to work properly for us, we need to modify two
.htaccess files. The first one in the root of the project (i.e. in
the subdomain folder where the site runs, for example
test, etc.) should look like this:
Require all granted RewriteEngine On RewriteBase / RewriteRule (.*) /www/$1
www, specify the correct public directory name of the
specific framework. For nette it is
www, elsewhere it may be
public for example.
You also need to make sure that the next
.htaccess, which is
located in the aforementioned public directory
public, has this line:
Make sure that the line isn't commented out, i.e. doesn't
# character at the beginning.
If you are still having problems getting the framework to work, please contact our customer support.