Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 wordpress 插件中移动了一个电子邮件缓存目录,我想在旧目录中保留一个 .htaccess 文件以重定向到新目录
我已经认真地用谷歌搜索,找不到可以将当前目录中的文件重定向到新目录的答案。为简单起见,htaccess 必须在旧目录中
siteurl/wp-content/plugins/church-admin-cache/ 到 siteurl/wp-content/uploads/church-admin-cache/
RedirectPermanent 应该可以完成这项工作。
RedirectPermanent /wp-content/plugins/church-admin-cache/ /wp-content/uploads/church-admin-cache/