Occasionally you may want to retrieve content from a subfolder, for example
named public
or 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 www
,
test
, etc.) should look like this:
Require all granted RewriteEngine On RewriteBase / RewriteRule (.*) /www/$1
Instead of 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 www
or
public
, has this line:
RewriteBase /
Make sure that the line isn't commented out, i.e. doesn't
contain the #
character at the beginning.
If you are still having problems getting the framework to work, please contact our customer support.
© 2001-2024 Blueboard.cz s. r. o.