In boost_admin_generate_htaccess() the variable $drupal_subdir is used in the line:
$string .= " RewriteCond %{REQUEST_URI} (^$drupal_subdir(admin|$cache_dir|misc|modules|sites|system|openid|themes|node/add))|(/(comment/reply|edit
|user|user/(login|password|register))$) [OR]\n";
At the start of this function a trailing slash is removed from $drupal_subdir, therefore this way it would match e.g. drupaladmin and drupalmisc
With the attached patch it generates a working RewtiteCond like
(^/drupal/(admin|cache|misc|modules|sites|system|openid|themes|node/add))
Changing all uses of $drupal_subdir to include a trailing slash might be a slightly cleaner implementation though...
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | boost-648242.patch | 9.01 KB | mikeytown2 |
| boost-htaccess_drupal_subdir_slash.patch | 1.28 KB | helmo |
Comments
Comment #1
mikeytown2 commentedI decided to add in the slashes to all the variables. Also the solution to the issue you raised is to use
$base_pathComment #2
helmo commentedI applied your patch and the result looks OK, thanks.
Comment #3
mikeytown2 commentedComment #4
mikeytown2 commentedcommitted