[英]How to redirect wordpress url by changing .htaccess file
嗨,我正在嘗試從重定向網址
%category%/%postname%.html轉換為%year%/%month%/%postname%
我嘗試通過更改.htaccess文件進行操作,但無濟於事。
至少我嘗試將%category%/%postname%.html重定向到%postname%,這也沒有用
重定向匹配301 ^ /([[^ /] +)/([^ /] +)。html $ http://www.example.com/ $ 2
任何幫助真的很感激
您看過http://codex.wordpress.org/Using_Permalinks嗎? WordPress可以幫助您解決此問題(在.htaccess上手動執行此操作可能會破壞您現有的WP設置)。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.