See if the .htaccess file uses the RewriteBase directive.

Paramètres

string $location: The location of the .htaccess file.

Return value

string The last active RewriteBase entry in htaccess.

6 calls to advagg_htaccess_rewritebase()
advagg_admin_settings_form dans ./advagg.admin.inc
Form builder; Configure advagg settings.
advagg_admin_settings_form dans ./advagg.admin.inc
Form builder; Configure advagg settings.
advagg_admin_settings_form_submit dans ./advagg.admin.inc
Clear out the advagg cache bin when the save configuration button is pressed.
advagg_htaccess_check_generate dans ./advagg.missing.inc
Generate .htaccess rules and place them in advagg dir.
advagg_install_chk_urls dans ./advagg.install
Make sure http requests to css/js files work correctly.

... See full list

5 string references to 'advagg_htaccess_rewritebase'
advagg.module dans ./advagg.module
Advanced CSS/JS aggregation module.
advagg_admin_settings_form dans ./advagg.admin.inc
Form builder; Configure advagg settings.
advagg_admin_settings_form_submit dans ./advagg.admin.inc
Clear out the advagg cache bin when the save configuration button is pressed.
advagg_htaccess_check_generate dans ./advagg.missing.inc
Generate .htaccess rules and place them in advagg dir.
advagg_install_chk_urls dans ./advagg.install
Make sure http requests to css/js files work correctly.

Fichier

./advagg.module, line 5592

Code

function advagg_htaccess_rewritebase($location = DRUPAL_ROOT) {
    if (is_readable($location . '/.htaccess')) {
        $htaccess = advagg_file_get_contents($location . '/.htaccess');
        $matches = array();
        $found = preg_match_all('/\\n\\s*RewriteBase\\s.*/i', $htaccess, $matches);
        if ($found && !empty($matches[0])) {
            $matches[0] = array_map('trim', $matches[0]);
            return array_pop($matches[0]);
        }
    }
    return '';
}