Reputation: 163
My web site opens normally, but does not load the folder of images, css, js, etcs
The path to the correct folder is: http://www.example.com/themes/leotrav/css/bootstrap.css"
but the folder that is being loaded is: http://www.example.com/tours/themes/leotrav/css/bootstrap.css"
I want to remove /tours/ for loading images
How can I change this?
Upvotes: 0
Views: 27
Reputation: 784898
You can use this rule as very first rule DocumentRoot/.htaccess
:
RewriteEngine On
RewriteRule ^tours/(.+?\.(?:jpe?g|gif|bmp|png|tiff|css|js))$ /$1 [L,NC,NE,R=301]
Upvotes: 1