內容簡介
這是一款搭配 Jeff Farthing 的 Theme My Login 外掛的附加外掛。當禁用 wp-login.php 被選擇時,此外掛不會顯示 404 錯誤,而是將網頁轉向到對應的 Theme My Login 頁面。
我開發這個外掛的原因是,我網站上有很多連結指向 /wp-login.php 和 /wp-login.php?action=register,在啟用這項安全選項後,這些連結失效了。因此我重新寫了程式碼,以協助其他有相同問題的使用者。
這段程式碼由 Jeff 在論壇上編寫,我將其發佈出來,希望能幫助到其他使用者。
外掛標籤
開發者團隊
② 後台搜尋「Redirect not 404 for Theme My Login」→ 直接安裝(推薦)
原文外掛簡介
Bolt on to the Theme My Login plugin by Jeff Farthing. Instead of giving 404 error – if disable wp-login.php is selected – it redirects to the relevant TML page.
I created this because there were many links on my sites to /wp-login.php and /wp-login.php?action=register and enabling this security option broke the site.
The code was written by Jeff on the forum – I’m publishing it to help others who may have had the same issue.
