开发者

htaccess image, css problem

开发者 https://www.devze.com 2023-02-05 08:30 出处:网络
I have a question. When i use this htacces开发者_运维百科s script and put this in the directorty \"test\"

I have a question. When i use this htacces开发者_运维百科s script and put this in the directorty "test"

The dir structory

base: test

images: test/images css:

test/css

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php?page=$1 [L]
RewriteRule ^(.*)(.*) index.php?page=$1&sub=$2 [L]

When I use this url "http://xxxxxxx/test/producten/" everything works fine, but when I use this url "http://xxxxxxx/test/producten/subpage" He doesn't find the images


Should this section have a forward slash?

RewriteRule ^(.*)/(.*) index.php?page=$1&sub=$2 [L]
0

精彩评论

暂无评论...
验证码 换一张
取 消