0
我想重定向到我的tomcat7應用參數, 我想一個鏈接到我的應用程序爲:http://my_IP/newpath/重定向在tomcat7
我創建ROOT.xml
在/conf/Catalina/localhost
有:
<Context
deployOnStartup="true"
docBase="/path/in/linux/tomcat7/webapps/MyAppName/"
path="/newpath"
debug="0"
reloadable="true"
/>
(在MyAppName文件夾中有index.html文件。)
問題: 我的應用程序需要調用正確使用:
../MyAppName/index.html#/main/
或../MyAppName/#/main/
我嘗試過,沒有成功:
- 調用
webapps/MyAppName.war
- 將在
ROOT.xml
類似:.../MyAppName/index.html#/main/
和.../MyAppName/index.html%23/main/
我劬est這個'#'號有問題, 以及我讀到我應該重定向到子文件夾(?) 有什麼建議嗎? 預先感謝您:)
*在_meta_中重定向_head_ – pearinthemountains