私のウェブアプリでいくつかのURLを書き直そうとしていますが、問題は、images / css / js / etcも書き直していることです...私の.htaccess:
DirectoryIndex engine.php
RewriteEngine On
Options -MultiViews
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ engine.php?link=$1
といくつかの例のhtml:
<img src="./theme/default/images/img.png" height="50px" />
http://domain.comを実行すると機能しますが、 http ://domain.com/test/asdを実行すると、画像が/asd/theme/default/images/img.pngに書き換えられます。 ..。。