2
我想處理所有的請求到一個域使用一個單一的PHP腳本。如何使用htaccess和mod_rewrite在內部重定向一切?
例如:
www.domain.com/something.php -> would be loading -> www.domain.com/process.php?u=something.php
www.domain.com/anything -> would be loading -> www.domain.com/process.php?u=anything
www.domain.com/sub/dir/x -> would be loading -> www.domain.com/process.php?u=sub/dir/x
但process.php不應該直接打開瀏覽器,我想去做一個內部重定向。
有人可以告訴我如何使用htaccess和mod_rewrite來做到這一點?