我希望能夠改寫這個的mod_rewrite忽略[L]
http://localhost/.../identicon/f528764d624db129b32c21fbca0cb8d6.png
到
http://localhost/.../identicon.php?hash=f528764d624db129b32c21fbca0cb8d6
,所以我增加了/.../.htaccess所以這是它:
RewriteEngine On
RewriteRule ^resource/ - [L]
RewriteRule ^identicon/(.+)\.png$ identicon.php?hash=$1 [QSA,L]
RewriteRule ^(.*)$ index.php?t=$1 [QSA,L]
由於某些原因,它不工作,因爲它將其重定向到index.php?t = identicon.php;即使L標誌被設置!爲什麼?
它以什麼方式不起作用? – Matchu 2010-01-19 03:33:28
@Matchu現在添加,它重定向到index.php而不是identicon.php。 – MiffTheFox 2010-01-19 03:36:30