2011-03-03 60 views

回答

2

在Javascript中:

location.hash = "/project/123"; 

,然後在應用程序加載檢查哈希,並將用戶重定向到「哈希」的網址。

if(!!location.hash) { 
    location.href = "http://foo.bar" + location.hash.substring(1); 
} 
0

.htaccess文件,你可以設置重複寫(如果你使用的是Linux)。在Windows機器上,您將使用IIS進行重新寫入。

參考this page更多信息