'Issue with rewriting url in htaccess
My Drupal site is deployed on Acquia and it is on https://www.newsite.com. For the languages other than English we will fetching the content from the old site (https://www.oldsite.com).
My intention is to load https://www.oldsite.com/de at https://www.newsite.com/de. I have the following rules in the htaccess and everything works fine. However the js, css and images of the new site also get rewritten.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !(\.css|\.js|\.png|\.jpg|\.gif|robots\.txt)$ [NC]
RewriteRule ^(.*)$ index.php/$1 [L]
RewriteRule de/(.*)$ http://www.oldsite.com/de/$1 [QSA,L,P]
RewriteRule fr/(.*)$ http://www.oldsite.com/fr/$1 [QSA,L,P]
RewriteRule static/(.*)$ http://www.oldsite.com/static/$1 [L]
</IfModule>
How can I prevent my new site js and css from being overwritten.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
