Closed daixiang0 closed 6 years ago
duplicate as https://github.com/AdamWhitcroft/Apaxy/issues/62 I think it would be better that enable this change in this repo if possible?
I'm having the same issue. I assume it's a design flaw? To reiterate what daixiang0 said, only the directory in which theme/
is in will be styled, but not it's subdirectories. Is there an elegant solution that does not require us to copy the theme/
and .htaccess
files to every directory we want styled?
As far as I can tell the only way is two copy the files into each directory. You can save some space if you know what the contents will be by deleting unnecessary images and customizing the .htaccess
files.
I just tested on my server, and it looks like you can also
ln -s ../theme theme
in a child directory. Obviously, it would need to point to the main "Themes" directory but it seems to work.
~~If you have theme/
anywhere on you're server, you can replace all occurrences of theme/
in the .htaccess
with /path/to/theme/folder/
. Note the /
at the start, indicating the server home directory.
This also means that the header, footer, and icons will be updated across-site when they are edited in the one folder.~~
UPDATE:
The .htaccess
is only needed in the top-level directory (of the directory wanted to be open), but both apache2.conf
and the config file for your server in sites-enabled/
must have the line
Options ... Indexes ...
For this to work. The styling will then be applied to all subdirectories.
Unless there are any more problems, @AdamWhitcroft I believe this can be closed.
Simply replacing theme/
with /theme/
worked for me.
@GodsVictory had the right answer.
Issue has been fixed in master branch, and in 1.0.0 release.
I'm closing this issue.
Then i try to test each level dirs and find only the first dir can have style. I find a way to slove it is that cp theme dir to each level dir. Is there any better way to slove it?