2011-01-19 84 views
0

我有一個問題。 當我使用這個htaccess的腳本,並把這個在directorty 「測試」htaccess圖像,css問題

在dir structory

基:測試

圖像:測試/圖像的CSS:

測試/ 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] 

當我使用這個URL「http:// xxxxxxx/test/producten /」一切正常,但是當我使用這個URL「http:// xxxxxxx/test/producte n /子頁面「他沒有找到圖像

回答

0

本節是否應該有正斜槓?

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

這完全沒有工作 – 2011-01-19 21:10:49