【发布时间】:2009-08-17 04:30:04
【问题描述】:
当我尝试使用图像标签显示图像时,显示图像出现问题。目前图像位于项目/图像/徽标中。我显示图像的页面位于 project/projectadmin/file.php 中。
图片路径如下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 文件中有什么??
标签: apache .htaccess mod-rewrite