retlehs/roots — Issue #333: Rewrites on deep folder structure
Author: HoundstoothSTL
Created: 2012-03-09 21:12:51+00:00
State: open

I'm using Capistrano to deploy my releases. Basically my structure is in the root:
Folder - Current (symlink)
Folder - Releases
Folder - Shared (wp-content/uploads symlinks to root-shared)
Index File - Points to /current/application/wp-blog-header.php

Once you go into the most recent release there is a folder called "application" that then opens into the WP install.

So basically my htaccess rewrites wouldn't be /wp-content/themes/roots/css/ to /css/ but instead /current/application/wp-content/themes/roots/css/ to /css/

I updated the roots_add_rewrites function in roots-htaccess.php to => WP_BASE . '/' . THEME_PATH . '/css/$1' etc...
and now my htaccess file reads as so
RewriteRule ^css/(.*) /current/application/wp-content/themes/roots/css/$1 [QSA,L]

Which really should be working, correct? Because my URL is http://blah.com but my site URL is http://blah.com/current/application

Do you have a workaround for multiple sub-folders off the root? I also don't want to rewrite your functions files core because I'd like to use the theme when/if you push updates.

Thanks in advance for any feedback!