0
我試圖部署使用Jekyll的網站。爲了方便我wan't到:重寫到子文件夾htaccess
- 克隆從我的GitHub庫
- 構建具有傑基爾
- 到_site文件夾重定向訪問
我一直在尋找的網站,但沒有左右我找到的解決方案的工作。
的URL是這樣的:
https://example.com/repo-folder/_site/
我當然希望觀衆只看到:
https://example.com/repo-folder/
在地址欄中,但服務於_site的所有文件夾。
我有什麼要寫入s htaccess文件,它應該放在哪裏?
感謝您的幫助。我非常感謝,但這不起作用。它會將_site文件夾重寫爲repo文件夾。 你可以在這裏看看https://interface.fh-potsdam.de/eingabe-ausgabe/ 當我打電話給https://interface.fh-potsdam.de/eingabe-ausgabe/_site文件夾時,它重定向到https://interface.fh-potsdam.de/eingabe-ausgabe/網址。但我希望在該網址下爲網站內容提供服務。 – fabianmoronzirfas 2014-12-06 20:17:01
@fabiantheblind在第二個重寫條件 – 2014-12-06 20:23:25
中還有一個流浪'%'仍然是一樣的。這可能是文件在該位置存在的問題嗎? eingabe-ausgabe/_site/index.html和eingabe-ausgabe/index.html都存在。這就是爲什麼.yaml頭可見 – fabianmoronzirfas 2014-12-06 20:32:43