0
如何在URL「.php」或「.html」或「?」時使用.htaccess重定向頁面。或「=」?使用重定向頁面。 htaccess
Examples
http://www.domain.ltd/index.php # error, execute redirect to http://www.domain.ltd/ban/
http://www.domain.ltd/index/?id=foo # error, execute redirect to http://www.domain.ltd/ban/
http://www.domain.ltd/index.html # error, execute redirect to http://www.domain.ltd/ban/
非常感謝您
但它沒有回答我的問題:-( – Charlie
請嘗試以下操作,您可能需要玩它重定向到的位置:RewriteRule^index \ .php $/ban [NC,R] –