htaccess rwrite映像文件夹


htaccess rwrite images folder

我的网站正常打开,但不加载图像、css、js等文件夹

正确文件夹的路径为:http://www.example.com/themes/leotrav/css/bootstrap.css"

但是正在加载的文件夹是:http://www.example.com/tours/themes/leotrav/css/bootstrap.css"

我想删除/tours/for loading images

我该如何更改?

您可以将此规则用作第一个规则DocumentRoot/.htaccess:

RewriteEngine On
RewriteRule ^tours/(.+?'.(?:jpe?g|gif|bmp|png|tiff|css|js))$ /$1 [L,NC,NE,R=301]