Issue with proxy subdirectory to point drupal 7 site

I am facing an issue when there is a proxy subdirectory point to Drupal 7 site.

For e.g. The site is http://www.mysite.com/training and www.mysite.com is main site which is running on the different server. /training is virtual/proxy subdirectory which mapped to different server where Drupal 7 site is hosted.

I have set the $base_url = ‘/training’ and update the .htaccess file with the below rules in Drupal 7 Training Portal Site.

RewriteRule ^$ training/index.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^training/(.*)$ index.php?q=$1 [L,QSA]

RewriteCond %{DOCUMENT_ROOT}/training/$1 -f
RewriteRule ^(.*)$ training/$1 [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*)$ training/index.php?q=$1 [L,QSA]

Using above settings, The issue is that it does not work because the assets will then have /training at the beginning which is an invalid path to the files.

Your help will be highly appreciated.

Thanks.

Drupal version: 


Source: https://www.drupal.org/taxonomy/term/1/feed