當我嘗試使用圖像標記顯示圖像時,顯示圖像時出現問題。現在圖像在項目/圖像/標誌。我正在顯示圖像的頁面位於project/projectadmin/file.php中。使用htaccess的圖像顯示中的問題
圖像路徑如下給出http://localhost/project/images/logo/cat_149.jpg。當我刪除htaccess,然後顯示圖像沒有問題。另外,當我使用這樣的圖像路徑http://localhost/project/projectadmin/images/logo/cat_149.jpg移動圖像到項目/ projectadmin/images/logo /,沒有問題來顯示圖像。
我的問題是什麼?
RewriteEngine On
ReWriteBase /project
RewriteRule ^(cat|Home|index.htm|)$ index.php [L,NC]
RewriteRule ^signin/(.*)$ Login.php?a=$1 [L,NC]
RewriteRule ^create_account/(.*)/(.*)$ createacc.php?v1=$1&v2=$2 [L,NC]
RewriteRule ^signup/(.*)$ createacc.php?var1=$1&var2=$1&var3=signup [L,NC]
RewriteRule ^myhope/(.*)$ home.php?var11=$1 [L,NC]
RewriteRule ^edit_account/(.*)$ edit_account.php?var12=$1 [L,NC]
RewriteRule ^edit_account_ship_pr edit_account_ship.php [L,NC]
RewriteRule ^edit_account_b/(.*)$ editacc.php?action=$1 [L,NC]
什麼是在htaccess文件? – 2009-08-17 04:32:28