0
我对WordPress的一个博客,从博客迁移等有固定链接结构类似http://www.exeideas.com/2014/10/blogger-to-wordpress-best-htaccess-file.html
,但现在我要重写它作为唯一的http://www.exeideas.com/blogger-to-wordpress-best-htaccess-file
。删除/年/月/从固定链接使用的.htaccess
我在我的.htaccess
文件中尝试了以下代码,但没有任何发生。
## Remove /YEAR/MONTH/ From URLs ##
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^/[0-9]{4}/[0-9]{2}/([^/.]+)\.html$ http://www.exeideas.com/$1/ [L,R=301]
</IfModule>
## Remove /YEAR/MONTH/ From URLs ##
和
## Remove /YEAR/MONTH/ From URLs ##
RedirectMatch 301 ^/[0-9]{4}/[0-9]{2}/([^/.]+)\.html$ http://www.exeideas.com/$1/
## Remove /YEAR/MONTH/ From URLs ##
所以,你能解释一下我身后的代码或其他任何正在发生的错误... ???
不工作取下斜线... :-( –