I'd like to create the following structure for my WP installation:
- htdocs (base dir)
- wp (WordPress dir)
- themes (WordPress theme dir)
- plugins (WordPress plugin dir)
- upload
- index.php
- .htaccess
So far I've been able to change the WordPress root directory [1] (which means that even though we're on «wp», we don't see the http://example.com/wp url, but http://example.com (without /wp, which is correct for what I want). However, my first «problem» is that, when accessing to the Dashboard, I do see the '/wp/xxx' in the url. Is that normal?
Plugins and upload folder change work fine. [2]
Themes, don't work fine [3]. I've created my own extension, where I use the register_theme_directory function in the following way:
register_theme_directory(ABSPATH . '../themes');
This makes the themes inside this themes folder show up in the themes selection section on the dashboard. I can select it and the theme is enabled, and it partially works (templates are correctly loaded). However, images don't load because WordPress tries to retrieve a wrong path:
/wp/wp-content/var/www/example.com/htdocs/wp/../themes/wp-softcatala/static/images/softcatala-logotip.jpg
(wp-softcatala is the wordpress theme)
Could anyone tell me why images are not loaded correctly? Why is it using the absolute path? (all directories have correct permissions for apache)
Thanks