我想根據bash腳本的輸出重定向「/」。假設腳本返回0或1.基於腳本輸出的重定向?
我已經繼承了沒有經驗的lighttpd服務器,所以希望有人可以提供幫助。 :)
基本上我想:
On accessing any url
If script output returns 1
redirect to /index.php
else
redirect to another url
這可能與lighttpd的?試圖避免爲這樣簡單的事情啓動一個PHP進程。