我正在使用Web服務器。如何強制更新網頁
之前:有一個網站。 「domain.com/」重定向到「domain.com/index.html」(邏輯),並將此頁面重定向到「domain.com/en/index.html」,標記爲: 「meta http-equiv =」refresh 「content =」0; url = en/index.html「」
現在:有一個WordPress的(我安裝了它),沒有index.html,但一個index.php。
問題:當我想訪問「domain.com」時,我被重定向到了domain.com/en/index.html。
我知道這是一個緩存問題,但如何禁用此緩存。重定向?
我找到了關於htaccess的解決方案(添加標頭集緩存控制「max-age = 0,no-cache,no-store,must-revalidate」),但它不起作用。
感謝您的回覆。但是當我使用禁用緩存時,網站顯示wordpress( - > index.php)。 DirectoryIndex是一個好主意,但我沒有訪問Apache配置...我試圖將它添加到.htaccess中,但它不起作用。 –