fixing some regex bug in .htaccess when the doc has composite name (with white spaces)