Keep plugins/ rewrite to root
This commit is contained in:
@@ -36,7 +36,7 @@ if (stristr($_SERVER['SERVER_SOFTWARE'], 'apache') || stristr($_SERVER['SERVER_S
|
||||
'assets/css/(.*)' => THEME_PATH . '/assets/css/$1',
|
||||
'assets/js/(.*)' => THEME_PATH . '/assets/js/$1',
|
||||
'assets/img/(.*)' => THEME_PATH . '/assets/img/$1',
|
||||
'assets/plugins/(.*)' => RELATIVE_PLUGIN_PATH . '/$1'
|
||||
'plugins/(.*)' => RELATIVE_PLUGIN_PATH . '/$1'
|
||||
);
|
||||
$wp_rewrite->non_wp_rules = array_merge($wp_rewrite->non_wp_rules, $roots_new_non_wp_rules);
|
||||
return $content;
|
||||
|
||||
Reference in New Issue
Block a user